Canner / wren-engine

🤖 The semantic engine for LLMs, bringing semantic context to AI agents. 🔥
https://getwren.ai/oss
Apache License 2.0
123 stars 33 forks source link

Build `pg_catalog` in an empty project #52

Closed goldmedal closed 5 months ago

goldmedal commented 2 years ago

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 commented 2 years ago

Handled the empty exception by #100

goldmedal commented 5 months ago

pg-wire is archived.