You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In [12]: import sqlglot as sg, sqlglot.expressions as sge
In [13]: sg.__version__
Out[13]: '22.3.1'
In [14]: sge.ArrayJoin(this=sg.column("arg"), expression=sg.column("sep")).sql("bigquery")
Out[14]: 'ARRAY_JOIN(arg, sep)'
Interestingly, when I parse the result I get an ArrayJoin instance and calling .sql on the result of parse_one generates the correct code, but constructing the object directly generates incorrect code:
Fully reproducible code snippet
Interestingly, when I parse the result I get an
ArrayJoin
instance and calling.sql
on the result ofparse_one
generates the correct code, but constructing the object directly generates incorrect code:Official Documentation
E.g., BigQuery has no function called
array_join
: https://cloud.google.com/bigquery/docs/reference/standard-sql/array_functionsThe text was updated successfully, but these errors were encountered: