What would be the way to parse postgreSQL with "distributed by" clause? #1507
-
>>> import sqlglot
>>> sqlglot.__version__
'11.5.9'
>>> from sqlglot import parse_one
>>> sql = """ create temp table temp_aaa (
... id varchar(18),
... name varchar(200)
... ) distributed by (id);
... """
>>> parse_one(sql, read='postgres') running the above got the following error: sqlglot.errors.ParseError: Invalid expression / Unexpected token. Line 4, Col: 3. |
Beta Was this translation helpful? Give feedback.
Answered by
georgesittas
Apr 30, 2023
Replies: 2 comments 3 replies
-
do you have documentation for this? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Yes I have read the sqlglot documentation by forking from github but I didn't find an answer. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @cauwt, I think Toby was asking about postgres' documentation on
distributed by
, so that we can use it as a guide for implementing it; it's currently not supported in SQLGlot. I couldn't find any reference to it in their docs.