Repository navigation
fix: lowercase information_schema columns data types - #26712
Conversation
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
LeftHandCold
left a comment
There was a problem hiding this comment.
The tenant-upgrade wiring is idempotent and the VersionOffset bump correctly reaches already-upgraded 4.0.6 tenants, but the DATA_TYPE compatibility fix is incomplete: lowercasing alone still leaves issue-reachable types outside Connector/ODBC 9.7.0's exact mapping table. In particular, the issue's c_bool remains SQL_UNKNOWN_TYPE, and unsigned integer columns remain unknown as well. Please normalize DATA_TYPE to MySQL-compatible base type names and cover those cases before merging.
XuPeng-SH
left a comment
There was a problem hiding this comment.
P1: Lowercasing DATA_TYPE is insufficient to fix the Connector/ODBC compatibility issue. mo_show_visible_bin(..., 2) emits BOOL and unsigned names such as INT UNSIGNED, so this change returns bool and int unsigned. Connector/ODBC 9.7.0 performs an exact lookup and has neither key, which means the issue-reported c_bool and unsigned integer columns still become SQL_UNKNOWN_TYPE. Please normalize DATA_TYPE to MySQL base names (BOOL to tinyint; unsigned integer types to tinyint/smallint/int/bigint), retain signedness and width in COLUMN_TYPE, and add bool plus unsigned coverage.
XuPeng-SH
left a comment
There was a problem hiding this comment.
Deep review on head 713aae6: the prior BOOL/unsigned normalization and same-version offset-upgrade blockers are fixed. Verified fresh-vs-existing tenant upgrade closure, DATA_TYPE/COLUMN_TYPE compatibility boundaries, targeted bootstrap/v4_0_6/sysview tests, and green CI. LGTM.
There was a problem hiding this comment.
Re-reviewed current head 713aae6 against merge-base c31b46d.
The previously requested blockers are closed:
- DATA_TYPE now uses Connector/ODBC-compatible MySQL base names: lowercase values, BOOL -> tinyint, and unsigned integer DATA_TYPE values stripped to their base type while COLUMN_TYPE retains signedness/width;
- equal-version offset upgrades now execute for tenants already at 4.0.6, while ordinary version-transition skips and newer-tenant guards remain unchanged.
I independently checked fresh-install vs existing-tenant behavior, upgrade task accounting, retry/transaction rollback, the no-op create_version UPDATE affected-row contract, the full type-expression branches, and the updated regression expectations. The standard UPDATE path counts the matched main-table row, so writing the same create_version still satisfies UpgradeTenantVersion's AffectedRows == 1 invariant.
No further blocking production issue found. git diff --check is clean, and all executed CI checks are green (the remaining entries are explicitly skipped/neutral by workflow). I did not run an additional broad local BVT/UT suite.
Merge Queue Status
This pull request spent 1 hour 35 minutes 14 seconds in the queue, including 50 minutes 47 seconds running CI. Required conditions to merge
|
) fix: lowercase information_schema columns data types Approved by: @LeftHandCold, @XuPeng-SH, @heni02
) fix: lowercase information_schema columns data types Approved by: @LeftHandCold, @XuPeng-SH, @heni02
) fix: lowercase information_schema columns data types Approved by: @LeftHandCold, @XuPeng-SH, @heni02
Return MySQL-compatible lowercase DATA_TYPE values and refresh the COLUMNS view for existing tenants.
Fixes #26680
What type of PR is this?
Which issue(s) this PR fixes:
issue #26680
What this PR does / why we need it:
fix: lowercase information_schema columns data types