Skip to content

Commit

Permalink
Log conversions in sqlutils.applyConversions
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Vaillancourt <[email protected]>
  • Loading branch information
timvaillancourt committed Oct 30, 2024
1 parent a768745 commit d376f04
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions go/vt/external/golib/sqlutils/dialect.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,12 @@ func regexpSpaces(statement string) string {
}

func applyConversions(statement string, conversions []regexpMap) string {
originalStatement := statement
for _, rmap := range conversions {
statement = rmap.process(statement)
}
if statement != originalStatement {
log.Infof("sqlutils.applyConversions: converted %q to %q", originalStatement, statement)

Check failure on line 54 in go/vt/external/golib/sqlutils/dialect.go

View workflow job for this annotation

GitHub Actions / Local example using consul on ubuntu-22.04

undefined: log

Check failure on line 54 in go/vt/external/golib/sqlutils/dialect.go

View workflow job for this annotation

GitHub Actions / Local example using etcd on ubuntu-22.04

undefined: log

Check failure on line 54 in go/vt/external/golib/sqlutils/dialect.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_revert)

undefined: log

Check failure on line 54 in go/vt/external/golib/sqlutils/dialect.go

View workflow job for this annotation

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

undefined: log

Check failure on line 54 in go/vt/external/golib/sqlutils/dialect.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_gen4)

undefined: log

Check failure on line 54 in go/vt/external/golib/sqlutils/dialect.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_schema)

undefined: log

Check failure on line 54 in go/vt/external/golib/sqlutils/dialect.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vstream)

undefined: log

Check failure on line 54 in go/vt/external/golib/sqlutils/dialect.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (backup_pitr)

undefined: log

Check failure on line 54 in go/vt/external/golib/sqlutils/dialect.go

View workflow job for this annotation

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

undefined: log

Check failure on line 54 in go/vt/external/golib/sqlutils/dialect.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_vindex_heavy)

undefined: log

Check failure on line 54 in go/vt/external/golib/sqlutils/dialect.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_ghost)

undefined: log

Check failure on line 54 in go/vt/external/golib/sqlutils/dialect.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_basic)

undefined: log

Check failure on line 54 in go/vt/external/golib/sqlutils/dialect.go

View workflow job for this annotation

GitHub Actions / End-to-End Test

undefined: log

Check failure on line 54 in go/vt/external/golib/sqlutils/dialect.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_reservedconn)

undefined: log

Check failure on line 54 in go/vt/external/golib/sqlutils/dialect.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_foreign_key_stress)

undefined: log

Check failure on line 54 in go/vt/external/golib/sqlutils/dialect.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (mysql80)

undefined: log

Check failure on line 54 in go/vt/external/golib/sqlutils/dialect.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_migrate_vdiff2_convert_tz)

undefined: log

Check failure on line 54 in go/vt/external/golib/sqlutils/dialect.go

View workflow job for this annotation

GitHub Actions / Docker Test Cluster 10

undefined: log

Check failure on line 54 in go/vt/external/golib/sqlutils/dialect.go

View workflow job for this annotation

GitHub Actions / Docker Test Cluster 10

undefined: log

Check failure on line 54 in go/vt/external/golib/sqlutils/dialect.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (xb_backup)

undefined: log

Check failure on line 54 in go/vt/external/golib/sqlutils/dialect.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_foreignkey_stress)

undefined: log

Check failure on line 54 in go/vt/external/golib/sqlutils/dialect.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (13)

undefined: log

Check failure on line 54 in go/vt/external/golib/sqlutils/dialect.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (18)

undefined: log

Check failure on line 54 in go/vt/external/golib/sqlutils/dialect.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (21)

undefined: log

Check failure on line 54 in go/vt/external/golib/sqlutils/dialect.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (schemadiff_vrepl)

undefined: log

Check failure on line 54 in go/vt/external/golib/sqlutils/dialect.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_v2)

undefined: log

Check failure on line 54 in go/vt/external/golib/sqlutils/dialect.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (tabletmanager_consul)

undefined: log

Check failure on line 54 in go/vt/external/golib/sqlutils/dialect.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_concurrentdml)

undefined: log

Check failure on line 54 in go/vt/external/golib/sqlutils/dialect.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vttablet_prscomplex)

undefined: log

Check failure on line 54 in go/vt/external/golib/sqlutils/dialect.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_tablet_healthcheck_cache)

undefined: log

Check failure on line 54 in go/vt/external/golib/sqlutils/dialect.go

View workflow job for this annotation

GitHub Actions / Docker Test Cluster 25

undefined: log

Check failure on line 54 in go/vt/external/golib/sqlutils/dialect.go

View workflow job for this annotation

GitHub Actions / Docker Test Cluster 25

undefined: log

Check failure on line 54 in go/vt/external/golib/sqlutils/dialect.go

View workflow job for this annotation

GitHub Actions / Docker Test Cluster 25

undefined: log

Check failure on line 54 in go/vt/external/golib/sqlutils/dialect.go

View workflow job for this annotation

GitHub Actions / Docker Test Cluster 25

undefined: log

Check failure on line 54 in go/vt/external/golib/sqlutils/dialect.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_partial_keyspace)

undefined: log

Check failure on line 54 in go/vt/external/golib/sqlutils/dialect.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtctlbackup_sharded_clustertest_heavy)

undefined: log

Check failure on line 54 in go/vt/external/golib/sqlutils/dialect.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_vschema)

undefined: log

Check failure on line 54 in go/vt/external/golib/sqlutils/dialect.go

View workflow job for this annotation

GitHub Actions / Unit Test (Race)

undefined: log

Check failure on line 54 in go/vt/external/golib/sqlutils/dialect.go

View workflow job for this annotation

GitHub Actions / Run Upgrade Downgrade Test - Backups - Manual

undefined: log

Check failure on line 54 in go/vt/external/golib/sqlutils/dialect.go

View workflow job for this annotation

GitHub Actions / Run Upgrade Downgrade Test - Backups - E2E

undefined: log

Check failure on line 54 in go/vt/external/golib/sqlutils/dialect.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (15)

undefined: log

Check failure on line 54 in go/vt/external/golib/sqlutils/dialect.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_across_db_versions)

undefined: log

Check failure on line 54 in go/vt/external/golib/sqlutils/dialect.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (tabletmanager_tablegc)

undefined: log

Check failure on line 54 in go/vt/external/golib/sqlutils/dialect.go

View workflow job for this annotation

GitHub Actions / Run Upgrade Downgrade Test - Reparent Old Vtctl

undefined: log

Check failure on line 54 in go/vt/external/golib/sqlutils/dialect.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_scheduler)

undefined: log

Check failure on line 54 in go/vt/external/golib/sqlutils/dialect.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_readafterwrite)

undefined: log

Check failure on line 54 in go/vt/external/golib/sqlutils/dialect.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtorc)

undefined: log

Check failure on line 54 in go/vt/external/golib/sqlutils/dialect.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (topo_connection_cache)

undefined: log

Check failure on line 54 in go/vt/external/golib/sqlutils/dialect.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_topo)

undefined: log

Check failure on line 54 in go/vt/external/golib/sqlutils/dialect.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_unsharded)

undefined: log

Check failure on line 54 in go/vt/external/golib/sqlutils/dialect.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (onlineddl_vrepl_suite)

undefined: log

Check failure on line 54 in go/vt/external/golib/sqlutils/dialect.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_godriver)

undefined: log

Check failure on line 54 in go/vt/external/golib/sqlutils/dialect.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_general_heavy)

undefined: log

Check failure on line 54 in go/vt/external/golib/sqlutils/dialect.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vtgate_topo_etcd)

undefined: log

Check failure on line 54 in go/vt/external/golib/sqlutils/dialect.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (tabletmanager_throttler_topo)

undefined: log

Check failure on line 54 in go/vt/external/golib/sqlutils/dialect.go

View workflow job for this annotation

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

undefined: log

Check failure on line 54 in go/vt/external/golib/sqlutils/dialect.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (vreplication_cellalias)

undefined: log

Check failure on line 54 in go/vt/external/golib/sqlutils/dialect.go

View workflow job for this annotation

GitHub Actions / Run endtoend tests on Cluster (mysql_server_vault)

undefined: log
}
return statement
}

0 comments on commit d376f04

Please sign in to comment.