Commit 865a77d
committed
refactor: add table aliases to prevent ambiguity in SQLGlotIR
1 parent 36261f5 commit 865a77d
File tree
285 files changed
+414
-328
lines changed- bigframes/core/compile/sqlglot
- tests/unit/core/compile/sqlglot
- aggregations/snapshots
- test_binary_compiler
- test_corr
- test_cov
- test_nullary_compiler
- test_row_number_with_window
- test_row_number
- test_size
- test_ordered_unary_compiler
- test_array_agg
- test_string_agg
- test_unary_compiler
- test_all_w_window
- test_all
- test_any_value
- test_any_w_window
- test_any
- test_approx_quartiles
- test_approx_top_count
- test_count
- test_cut
- test_dense_rank
- test_diff_w_bool
- test_diff_w_datetime
- test_diff_w_date
- test_diff_w_int
- test_diff_w_timestamp
- test_first_non_null
- test_first
- test_last_non_null
- test_last
- test_max
- test_mean
- test_median
- test_min
- test_nunique
- test_pop_var
- test_product
- test_qcut
- test_quantile
- test_rank
- test_shift
- test_std
- test_sum
- test_var
- expressions/snapshots
- test_ai_ops
- test_ai_classify
- test_ai_generate_bool_with_connection_id
- test_ai_generate_bool_with_model_param
- test_ai_generate_bool
- test_ai_generate_double_with_connection_id
- test_ai_generate_double_with_model_param
- test_ai_generate_double
- test_ai_generate_int_with_connection_id
- test_ai_generate_int_with_model_param
- test_ai_generate_int
- test_ai_generate_with_connection_id
- test_ai_generate_with_model_param
- test_ai_generate_with_output_schema
- test_ai_generate
- test_ai_if
- test_ai_score
- test_array_ops
- test_array_index
- test_array_reduce_op
- test_array_slice_with_only_start
- test_array_slice_with_start_and_stop
- test_array_to_string
- test_to_array_op
- test_blob_ops
- test_obj_fetch_metadata
- test_obj_get_access_url
- test_obj_make_ref
- test_bool_ops
- test_and_op
- test_or_op
- test_xor_op
- test_comparison_ops
- test_eq_null_match
- test_eq_numeric
- test_ge_numeric
- test_gt_numeric
- test_is_in
- test_le_numeric
- test_lt_numeric
- test_maximum_op
- test_minimum_op
- test_ne_numeric
- test_datetime_ops
- test_add_timedelta
- test_datetime_to_integer_label
- test_date
- test_dayofweek
- test_dayofyear
- test_day
- test_floor_dt
- test_hour
- test_integer_label_to_datetime_fixed
- test_integer_label_to_datetime_month
- test_integer_label_to_datetime_quarter
- test_integer_label_to_datetime_week
- test_integer_label_to_datetime_year
- test_iso_day
- test_iso_week
- test_iso_year
- test_minute
- test_month
- test_normalize
- test_quarter
- test_second
- test_strftime
- test_sub_timedelta
- test_time
- test_to_datetime
- test_to_timestamp
- test_unix_micros
- test_unix_millis
- test_unix_seconds
- test_year
- test_generic_ops
- test_astype_bool
- test_astype_float
- test_astype_from_json
- test_astype_int
- test_astype_json
- test_astype_string
- test_astype_time_like
- test_binary_remote_function_op
- test_case_when_op
- test_clip
- test_coalesce
- test_fillna
- test_hash
- test_invert
- test_isnull
- test_map
- test_nary_remote_function_op
- test_notnull
- test_remote_function_op
- test_row_key
- test_sql_scalar_op
- test_where
- test_geo_ops
- test_geo_area
- test_geo_st_astext
- test_geo_st_boundary
- test_geo_st_buffer
- test_geo_st_centroid
- test_geo_st_convexhull
- test_geo_st_difference
- test_geo_st_distance
- test_geo_st_geogfromtext
- test_geo_st_geogpoint
- test_geo_st_intersection
- test_geo_st_isclosed
- test_geo_st_length
- test_geo_x
- test_geo_y
- test_json_ops
- test_json_extract_array
- test_json_extract_string_array
- test_json_extract
- test_json_keys
- test_json_query_array
- test_json_query
- test_json_set
- test_json_value
- test_parse_json
- test_to_json_string
- test_to_json
- test_numeric_ops
- test_abs
- test_add_numeric
- test_add_string
- test_add_timedelta
- test_arccosh
- test_arccos
- test_arcsinh
- test_arcsin
- test_arctan2
- test_arctanh
- test_arctan
- test_ceil
- test_cosh
- test_cosine_distance
- test_cos
- test_div_numeric
- test_div_timedelta
- test_euclidean_distance
- test_expm1
- test_exp
- test_floordiv_timedelta
- test_floor
- test_isfinite
- test_ln
- test_log10
- test_log1p
- test_manhattan_distance
- test_mod_numeric
- test_mul_numeric
- test_mul_timedelta
- test_neg
- test_pos
- test_pow
- test_round
- test_sinh
- test_sin
- test_sqrt
- test_sub_numeric
- test_sub_timedelta
- test_tanh
- test_tan
- test_unsafe_pow_op
- test_string_ops
- test_add_string
- test_capitalize
- test_endswith
- test_isalnum
- test_isalpha
- test_isdecimal
- test_isdigit
- test_islower
- test_isnumeric
- test_isspace
- test_isupper
- test_len_w_array
- test_len
- test_lower
- test_lstrip
- test_regex_replace_str
- test_replace_str
- test_reverse
- test_rstrip
- test_startswith
- test_str_contains_regex
- test_str_contains
- test_str_extract
- test_str_find
- test_str_get
- test_str_pad
- test_str_repeat
- test_str_slice
- test_strconcat
- test_string_split
- test_strip
- test_upper
- test_zfill
- test_struct_ops
- test_struct_field
- test_struct_op
- test_timedelta_ops
- test_timedelta_floor
- test_to_timedelta
- snapshots
- test_compile_aggregate
- test_compile_aggregate_wo_dropna
- test_compile_aggregate
- test_compile_concat
- test_compile_concat_filter_sorted
- test_compile_concat
- test_compile_explode
- test_compile_explode_dataframe
- test_compile_explode_series
- test_compile_filter/test_compile_filter
- test_compile_isin
- test_compile_isin_not_nullable
- test_compile_isin
- test_compile_join
- test_compile_join_w_on
- bool_col
- float64_col
- int64_col
- numeric_col
- string_col
- time_col
- test_compile_join
- test_compile_readtable
- test_compile_readtable_w_columns_filters
- test_compile_readtable_w_json_types
- test_compile_readtable_w_limit
- test_compile_readtable_w_nested_structs_types
- test_compile_readtable_w_ordering
- test_compile_readtable_w_repeated_types
- test_compile_readtable_w_system_time
- test_compile_readtable
- test_compile_window
- test_compile_window_w_groupby_rolling
- test_compile_window_w_skips_nulls_op
- test_compile_window_wo_skips_nulls_op
- third_party/bigframes_vendored/sqlglot
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
285 files changed
+414
-328
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
137 | | - | |
138 | | - | |
| 137 | + | |
| 138 | + | |
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
| 144 | + | |
144 | 145 | | |
145 | 146 | | |
146 | 147 | | |
147 | 148 | | |
148 | 149 | | |
| 150 | + | |
149 | 151 | | |
150 | 152 | | |
151 | | - | |
152 | | - | |
153 | | - | |
| 153 | + | |
| 154 | + | |
154 | 155 | | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
155 | 181 | | |
156 | 182 | | |
157 | 183 | | |
| |||
165 | 191 | | |
166 | 192 | | |
167 | 193 | | |
168 | | - | |
| 194 | + | |
169 | 195 | | |
170 | | - | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
171 | 212 | | |
172 | 213 | | |
173 | | - | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
174 | 217 | | |
175 | 218 | | |
176 | 219 | | |
177 | 220 | | |
178 | | - | |
| 221 | + | |
179 | 222 | | |
180 | 223 | | |
181 | 224 | | |
182 | | - | |
| 225 | + | |
183 | 226 | | |
184 | 227 | | |
185 | 228 | | |
186 | 229 | | |
187 | | - | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
188 | 233 | | |
189 | 234 | | |
190 | | - | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
191 | 238 | | |
192 | 239 | | |
193 | 240 | | |
194 | 241 | | |
195 | 242 | | |
196 | 243 | | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
197 | 254 | | |
198 | 255 | | |
199 | 256 | | |
| |||
210 | 267 | | |
211 | 268 | | |
212 | 269 | | |
213 | | - | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
214 | 275 | | |
215 | 276 | | |
216 | 277 | | |
| |||
276 | 337 | | |
277 | 338 | | |
278 | 339 | | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
279 | 353 | | |
280 | 354 | | |
281 | | - | |
| 355 | + | |
| 356 | + | |
282 | 357 | | |
283 | 358 | | |
284 | 359 | | |
| |||
310 | 385 | | |
311 | 386 | | |
312 | 387 | | |
313 | | - | |
| 388 | + | |
314 | 389 | | |
315 | 390 | | |
316 | 391 | | |
| |||
320 | 395 | | |
321 | 396 | | |
322 | 397 | | |
323 | | - | |
| 398 | + | |
324 | 399 | | |
325 | 400 | | |
326 | 401 | | |
| |||
371 | 446 | | |
372 | 447 | | |
373 | 448 | | |
374 | | - | |
| 449 | + | |
| 450 | + | |
375 | 451 | | |
376 | 452 | | |
377 | 453 | | |
| |||
387 | 463 | | |
388 | 464 | | |
389 | 465 | | |
390 | | - | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
391 | 469 | | |
392 | | - | |
| 470 | + | |
393 | 471 | | |
394 | 472 | | |
395 | 473 | | |
396 | 474 | | |
397 | 475 | | |
398 | | - | |
399 | | - | |
400 | | - | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
401 | 481 | | |
402 | 482 | | |
403 | 483 | | |
404 | 484 | | |
405 | 485 | | |
406 | | - | |
| 486 | + | |
407 | 487 | | |
408 | 488 | | |
409 | 489 | | |
| |||
496 | 576 | | |
497 | 577 | | |
498 | 578 | | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
499 | 582 | | |
500 | | - | |
| 583 | + | |
501 | 584 | | |
502 | 585 | | |
503 | 586 | | |
504 | 587 | | |
505 | 588 | | |
506 | | - | |
507 | 589 | | |
508 | 590 | | |
509 | 591 | | |
| |||
524 | 606 | | |
525 | 607 | | |
526 | 608 | | |
| 609 | + | |
| 610 | + | |
527 | 611 | | |
528 | 612 | | |
529 | 613 | | |
530 | | - | |
| 614 | + | |
531 | 615 | | |
532 | 616 | | |
533 | 617 | | |
| |||
554 | 638 | | |
555 | 639 | | |
556 | 640 | | |
557 | | - | |
558 | 641 | | |
559 | 642 | | |
560 | 643 | | |
| |||
590 | 673 | | |
591 | 674 | | |
592 | 675 | | |
593 | | - | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
594 | 679 | | |
595 | 680 | | |
596 | 681 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
0 commit comments