How to optimize multiple statements at once #3041
-
Is it possible to optimize several SQL statements at once in Bigquery (I.e., take multiple semicolon-separated statements and consolidate/optimize them)? When I parse such a query, it’s a list of ASTs, so I’m not sure whether this is possible or I can only optimize each one on its own. |
Beta Was this translation helpful? Give feedback.
Answered by
georgesittas
Feb 29, 2024
Replies: 1 comment
-
The optimizer expects a single |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
georgesittas
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The optimizer expects a single
Expression
at a time, so that's indeed not possible. As you said, you can optimize each of them separately.