Context:
1) Created two tables warehouse
(in defaultDataSource) and warehouse_partition
(views) using tpcds.sql files.
2) Added different set of data in both tables.
3) started testing (with data-sources tables having 2 rows, one for default data-source and other for views, without empty views table)
Error:
Now I created a warehouse_partition
view using DDL statement and then tried 'select count() from warehouse w_warehouse_sq_ft > 200'
but this failed with error:
java.sql.SQLException: Error while executing SQL "select count() from canonical.public.warehouse as wr where wr.w_warehouse_sq_ft > 200": null
at com.qubole.quark.planner.MetadataSchema$1.createTable(MetadataSchema.java:99)
at org.apache.calcite.materialize.MaterializationService.defineMaterialization(MaterializationService.java:138)
at com.qubole.quark.planner.MetadataSchema.initialize(MetadataSchema.java:122)
at com.qubole.quark.sql.QueryContext.<init>(QueryContext.java:111)
But the same query passes if the warehouse_partition
view was added before starting the test (instead of using the DDL).
Not sure if I am setting up things wrong, or missing something, any suggestions?