Closed kfollesdal closed 4 hours ago
You'd need to:
SECRET
token type, map "SECRET"
to it and add that token to DB_CREATABLES
in the base parser._parse_create
so that you can consume the (TYPE value [, KEY VALUE ...])
syntax. After parsing it, one idea is to represent this CSV of props using Properties
, so each key-value pair would be represented as a Property
, and then override create_sql
for Snowflake so that if Create.kind
is SECRET
, somehow omit the =
that would be generated for the Property
nodes.This is relatively low priority for the core team, but we'll be happy to accept a well-crafted PR for this. Feel free to reach out in Slack if you need further guidance.
While using
sqlmesh
withduckdb
, and are using the secret manager in duckdb to authenticate connection to azure storage account.I discovered that
sqlglot
do not supportCREATE SECRET ...
, I get a WARING, but sqlmesh run fine. So this is not critical, so just nice to fix.With
sqlglot
frommain
commit 647b98dgives
Is this something that is easily fixed? Maybe point me to the right place in code with description on what must be done and I can try to make a PR.