Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adds optional window function to aggregate functions in sqlparser #15382

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion go/vt/sqlparser/ast.go
Original file line number Diff line number Diff line change
Expand Up @@ -2888,7 +2888,8 @@
}

CountStar struct {
_ bool
_ bool
OverClause *OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Local example using zk2 on ubuntu-22.04

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Region Sharding example using etcd on ubuntu-22.04

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Local example using etcd on ubuntu-22.04

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_vrepl_stress_suite)

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_basic)

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_vrepl)

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / End-to-End Test

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_vrepl) mysql57

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Unit Test (Race)

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / End-to-End Test (Race)

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (mysql80)

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_ghost)

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (tabletmanager_throttler_topo)

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_concurrentdml)

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (backup_pitr)

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_cellalias)

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_across_db_versions)

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_topo)

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (tabletmanager_tablegc)

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_godriver)

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_foreignkey_stress)

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (12)

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (22)

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_transaction)

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_scheduler)

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (ers_prs_newfeatures_heavy)

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_schema_tracker)

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_unsharded)

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_general_heavy)

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_vschema)

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_readafterwrite)

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (21)

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_v2)

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vstream)

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_vindex_heavy)

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (18)

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_partial_movetables_and_materialize)

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtbackup)

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_schema)

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_ghost) mysql57

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (schemadiff_vrepl) mysql57

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_revert) mysql57

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_scheduler) mysql57

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtctlbackup_sharded_clustertest_heavy)

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtorc) mysql57

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (xb_backup)

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (backup_pitr) mysql57

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (backup_pitr_xtrabackup)

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (xb_recovery)

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (mysql_server_vault)

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_queries)

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Static Code Checks Etc

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Static Code Checks Etc

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (backup_pitr_xtrabackup) mysql57

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (13)

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (xb_backup) mysql57

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (xb_recovery) mysql57

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_topo_consul)

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (15)

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (tabletmanager_consul)

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run Upgrade Downgrade Test - Reparent Old Vtctl

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_foreign_key_stress)

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_vrepl_suite)

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_vrepl_suite) mysql57

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_vrepl_stress)

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtorc)

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_revert)

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_vrepl_stress_suite) mysql57

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run Upgrade Downgrade Test - Backups - E2E

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (topo_connection_cache)

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Unit Test (mysql57)

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (schemadiff_vrepl)

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_vrepl_stress) mysql57

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_partial_keyspace)

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_topo_etcd)

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run Upgrade Downgrade Test - Query Serving (Schema)

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_gen4)

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Unit Test (mysql80)

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_reservedconn)

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_migrate_vdiff2_convert_tz)

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run Upgrade Downgrade Test - Query Serving (Queries)

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Docker Test Cluster 10

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Docker Test Cluster 10

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vttablet_prscomplex)

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Code Coverage

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (tabletmanager_tablegc) mysql57

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run Upgrade Downgrade Test - Backups - Manual

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_tablet_healthcheck_cache)

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run Upgrade Downgrade Test - Reparent Old VTTablet

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Docker Test Cluster 25

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Docker Test Cluster 25

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Docker Test Cluster 25

other declaration of OverClause

Check failure on line 2892 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Docker Test Cluster 25

other declaration of OverClause
// TL;DR; This makes sure that reference equality checks works as expected
//
// You're correct that this might seem a bit strange at first glance.
Expand All @@ -2915,7 +2916,7 @@
// The solution we employed was to add a dummy field `_ bool` to the otherwise empty struct `CountStar`.
// This ensures that each instance of `CountStar` is treated as a separate object,
// even in the context of out semantic state which uses these objects as map keys.
OverClause *OverClause

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Local example using zk2 on ubuntu-22.04

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Region Sharding example using etcd on ubuntu-22.04

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Local example using etcd on ubuntu-22.04

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_vrepl_stress_suite)

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_basic)

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_vrepl)

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / End-to-End Test

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_vrepl) mysql57

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Unit Test (Race)

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / End-to-End Test (Race)

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (mysql80)

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_ghost)

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (tabletmanager_throttler_topo)

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_concurrentdml)

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (backup_pitr)

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_cellalias)

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_across_db_versions)

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_topo)

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (tabletmanager_tablegc)

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_godriver)

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_foreignkey_stress)

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (12)

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (22)

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_transaction)

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_scheduler)

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (ers_prs_newfeatures_heavy)

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_schema_tracker)

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_unsharded)

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_general_heavy)

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_vschema)

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_readafterwrite)

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (21)

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_v2)

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vstream)

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_vindex_heavy)

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (18)

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_partial_movetables_and_materialize)

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtbackup)

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_schema)

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_ghost) mysql57

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (schemadiff_vrepl) mysql57

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_revert) mysql57

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_scheduler) mysql57

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtctlbackup_sharded_clustertest_heavy)

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtorc) mysql57

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (xb_backup)

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (backup_pitr) mysql57

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (backup_pitr_xtrabackup)

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (xb_recovery)

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (mysql_server_vault)

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_queries)

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Static Code Checks Etc

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Static Code Checks Etc

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (backup_pitr_xtrabackup) mysql57

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (13)

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (xb_backup) mysql57

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (xb_recovery) mysql57

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_topo_consul)

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (15)

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (tabletmanager_consul)

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run Upgrade Downgrade Test - Reparent Old Vtctl

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_foreign_key_stress)

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_vrepl_suite)

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_vrepl_suite) mysql57

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_vrepl_stress)

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtorc)

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_revert)

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_vrepl_stress_suite) mysql57

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run Upgrade Downgrade Test - Backups - E2E

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (topo_connection_cache)

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Unit Test (mysql57)

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (schemadiff_vrepl)

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_vrepl_stress) mysql57

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_partial_keyspace)

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_topo_etcd)

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run Upgrade Downgrade Test - Query Serving (Schema)

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_gen4)

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Unit Test (mysql80)

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_reservedconn)

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_migrate_vdiff2_convert_tz)

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run Upgrade Downgrade Test - Query Serving (Queries)

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Docker Test Cluster 10

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Docker Test Cluster 10

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vttablet_prscomplex)

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Code Coverage

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (tabletmanager_tablegc) mysql57

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run Upgrade Downgrade Test - Backups - Manual

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_tablet_healthcheck_cache)

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Run Upgrade Downgrade Test - Reparent Old VTTablet

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Docker Test Cluster 25

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Docker Test Cluster 25

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Docker Test Cluster 25

OverClause redeclared

Check failure on line 2919 in go/vt/sqlparser/ast.go

View workflow job for this annotation

GitHub Actions / Docker Test Cluster 25

OverClause redeclared
}

Avg struct {
Expand Down
48 changes: 48 additions & 0 deletions go/vt/sqlparser/parse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3766,6 +3766,54 @@ var (
}, {
input: `kill 18446744073709551615`,
output: `kill connection 18446744073709551615`,
}, {
input: "SELECT time, subject, AVG(val) OVER (PARTITION BY time, subject) AS window_result FROM observations GROUP BY time, subject;",
output: "select `time`, subject, avg(val) over ( partition by `time`, subject) as window_result from observations group by `time`, subject",
}, {
input: "SELECT time, subject, BIT_AND(val) OVER (PARTITION BY time, subject) AS window_result FROM observations GROUP BY time, subject;",
output: "select `time`, subject, bit_and(val) over ( partition by `time`, subject) as window_result from observations group by `time`, subject",
}, {
input: "SELECT time, subject, BIT_OR(val) OVER (PARTITION BY time, subject) AS window_result FROM observations GROUP BY time, subject;",
output: "select `time`, subject, bit_or(val) over ( partition by `time`, subject) as window_result from observations group by `time`, subject",
}, {
input: "SELECT time, subject, BIT_XOR(val) OVER (PARTITION BY time, subject) AS window_result FROM observations GROUP BY time, subject;",
output: "select `time`, subject, bit_xor(val) over ( partition by `time`, subject) as window_result from observations group by `time`, subject",
}, {
input: "SELECT time, subject, COUNT(val) OVER (PARTITION BY time, subject) AS window_result FROM observations GROUP BY time, subject;",
output: "select `time`, subject, count(val) over ( partition by `time`, subject) as window_result from observations group by `time`, subject",
}, {
input: "SELECT time, subject, COUNT(*) OVER (PARTITION BY time, subject) AS window_result FROM observations GROUP BY time, subject;",
output: "select `time`, subject, count(*) over ( partition by `time`, subject) as window_result from observations group by `time`, subject",
}, {
input: "SELECT time, subject, MAX(val) OVER (PARTITION BY time, subject) AS window_result FROM observations GROUP BY time, subject;",
output: "select `time`, subject, max(val) over ( partition by `time`, subject) as window_result from observations group by `time`, subject",
}, {
input: "SELECT time, subject, MIN(val) OVER (PARTITION BY time, subject) AS window_result FROM observations GROUP BY time, subject;",
output: "select `time`, subject, min(val) over ( partition by `time`, subject) as window_result from observations group by `time`, subject",
}, {
input: "SELECT time, subject, STD(val) OVER (PARTITION BY time, subject) AS window_result FROM observations GROUP BY time, subject;",
output: "select `time`, subject, std(val) over ( partition by `time`, subject) as window_result from observations group by `time`, subject",
}, {
input: "SELECT time, subject, STDDEV(val) OVER (PARTITION BY time, subject) AS window_result FROM observations GROUP BY time, subject;",
output: "select `time`, subject, stddev(val) over ( partition by `time`, subject) as window_result from observations group by `time`, subject",
}, {
input: "SELECT time, subject, STDDEV_POP(val) OVER (PARTITION BY time, subject) AS window_result FROM observations GROUP BY time, subject;",
output: "select `time`, subject, stddev_pop(val) over ( partition by `time`, subject) as window_result from observations group by `time`, subject",
}, {
input: "SELECT time, subject, STDDEV_SAMP(val) OVER (PARTITION BY time, subject) AS window_result FROM observations GROUP BY time, subject;",
output: "select `time`, subject, stddev_samp(val) over ( partition by `time`, subject) as window_result from observations group by `time`, subject",
}, {
input: "SELECT time, subject, SUM(val) OVER (PARTITION BY time, subject) AS window_result FROM observations GROUP BY time, subject;",
output: "select `time`, subject, sum(val) over ( partition by `time`, subject) as window_result from observations group by `time`, subject",
}, {
input: "SELECT time, subject, VAR_POP(val) OVER (PARTITION BY time, subject) AS window_result FROM observations GROUP BY time, subject;",
output: "select `time`, subject, var_pop(val) over ( partition by `time`, subject) as window_result from observations group by `time`, subject",
}, {
input: "SELECT time, subject, VAR_SAMP(val) OVER (PARTITION BY time, subject) AS window_result FROM observations GROUP BY time, subject;",
output: "select `time`, subject, var_samp(val) over ( partition by `time`, subject) as window_result from observations group by `time`, subject",
}, {
input: "SELECT time, subject, VARIANCE(val) OVER (PARTITION BY time, subject) AS window_result FROM observations GROUP BY time, subject;",
output: "select `time`, subject, variance(val) over ( partition by `time`, subject) as window_result from observations group by `time`, subject",
}}
)

Expand Down
Loading