We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a07f19 commit d5f84b2Copy full SHA for d5f84b2
bigframes/operations/output_schemas.py
@@ -30,6 +30,7 @@ def parse_sql_fields(sql: str) -> tuple[pa.Field]:
30
31
Examples:
32
"x INT64, y FLOAT64" => (pa.field("x", pa.int64()), pa.field("y", pa.float64()))
33
+ "y INT64, x FLOAT64" => (pa.field("x", pa.float64()), pa.field("y", pa.int64()))
34
"""
35
sg_type = sqlglot.parse_one(f"STRUCT<{sql}>", read="bigquery")
36
pa_struct = _sg_to_pyarrow_dtype(cast(sgexp.DataType, sg_type))
0 commit comments