<div dir="ltr"><div>In the interest of maximum transparency as to what I'm doing, this is my unit test.</div><div><br></div><div>I run these SQL statements on an empty database:</div><div><br></div><div>CREATE TABLE vec (id INTEGER PRIMARY KEY, a INTEGER, b INTEGER);<br>CREATE VIEW vec_view AS SELECT * FROM vec;<br>CREATE MATERIALIZED VIEW hypot AS SELECT id, sqrt(a*a + b*b) as c FROM vec;<br>CREATE MATERIALIZED VIEW squared AS SELECT id, pow(a, 2) as c, pow(b, 2) as d FROM vec;<br>CREATE SCHEMA Foo;<br>CREATE TABLE Foo.vec2 (id INTEGER PRIMARY KEY, a INTEGER, b INTEGER);<br>CREATE VIEW Foo.vec_view2 AS SELECT * FROM Foo.vec2;<br>CREATE MATERIALIZED VIEW Foo.hypot2 AS SELECT id, sqrt(a*a + b*b) as c FROM Foo.vec2;</div><div><br></div><div>This results in a database with the following schema/tables/views</div><div><ul><li>public</li><ul><li>vec [table]</li><li>vec_view [view]</li><li>hypot [mat view]</li><li>squared [mat view]</li></ul><li>Foo</li><ul><li>vec2 [table]</li><li>vec_view2 [view]</li><li>hypot2 [mat view]</li></ul></ul></div><div>I then proceed to run the following tests:</div><div><br></div><div>1. Describe the full schema. I expect each schema to be present and each table/view/matview under it is a class definition. Each column is a data property on their respective class.<br><br>Expectations: correct<br><br>2. Describe a partial schema with a schema hint of "public" and a class name hint of "hypot". I expect it to contain only one schema (public) with one class (hypot). Each column from the hypot view is present in the class as a data property.<br><br>Expectations: correct<br><br>What am I possibly missing here? No class definitions are being misplaced in other schemas.</div><div><br></div><div>- Jackie</div><div><br></div><div><br></div><div><br></div><div>You wrote:</div><div><br></div><div>Hi,<div dir="auto"><br></div><div dir="auto">Creating these two will trigger issue. Materialized views can be in public schema.</div><div dir="auto"><br></div><div dir="auto">Create materialized view mv_test1 as select 1 as foo;</div><div dir="auto"><br></div><div dir="auto">Create materialized view mv_test2 as select 2 as foo;<br><div dir="auto"><br></div><div dir="auto">Br, Ari</div></div></div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div></div></div></div></div>