wren-engine icon indicating copy to clipboard operation
wren-engine copied to clipboard

Build `pg_catalog` in an empty project

Open goldmedal opened this issue 3 years ago • 1 comments

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

goldmedal avatar Jul 20 '22 02:07 goldmedal

Handled the empty exception by #100

goldmedal avatar Aug 17 '22 02:08 goldmedal

pg-wire is archived.

goldmedal avatar May 29 '24 13:05 goldmedal