wren-engine
wren-engine copied to clipboard
Build `pg_catalog` in an empty project
Because we create every pg table through View, if a project without any dataset, some view creating SQL will be wrong.
all_table view
https://github.com/Canner/canner-metric-layer/blob/3ef2396a31f0c9523e92e9ee04ae9ddf7046720e/core/cml-postgres-wire-protocol/src/main/java/io/cml/pgcatalog/builder/BigQueryUtils.java#L94-L99
all_columns view
https://github.com/Canner/canner-metric-layer/blob/3ef2396a31f0c9523e92e9ee04ae9ddf7046720e/core/cml-postgres-wire-protocol/src/main/java/io/cml/pgcatalog/builder/BigQueryUtils.java#L108-L115
Handled the empty exception by #100
pg-wire is archived.