Skip to content

Mysql 5.7 Changes [Experimental]#3695

Draft
sm745052 wants to merge 15 commits intomainfrom
mysql5.7
Draft

Mysql 5.7 Changes [Experimental]#3695
sm745052 wants to merge 15 commits intomainfrom
mysql5.7

Conversation

@sm745052
Copy link
Copy Markdown
Contributor

No description provided.

@gemini-code-assist
Copy link
Copy Markdown

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request introduces experimental support for MySQL 5.7 by refactoring the collation order query and updating the Java dialect adapter. The changes focus on ensuring compatibility with older MySQL versions that lack modern window functions, while simultaneously improving the performance of the collation mapping process for all supported MySQL versions.

Highlights

  • MySQL 5.7 Compatibility: Updated the collation order query to replace window functions (FIRST_VALUE, DENSE_RANK) with temporary tables and GROUP BY joins, ensuring compatibility with MySQL 5.7 while maintaining support for 8.0+.
  • Performance Improvements: Optimized the collation order query by materializing codepoints into a temporary table, avoiding redundant cross-joins and improving execution efficiency.
  • Codebase Refactoring: Updated the Java adapter to handle MySQL 5.7 specific behavior regarding PAD_ATTRIBUTE and introduced a MySqlVersion enum to manage version-specific logic.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 15, 2026

Codecov Report

❌ Patch coverage is 91.75824% with 15 lines in your changes missing coverage. Please review.
✅ Project coverage is 52.66%. Comparing base (d871e1e) to head (2d74fd8).
⚠️ Report is 17 commits behind head on main.

Files with missing lines Patch % Lines
.../uniformsplitter/stringmapper/CollationMapper.java 91.87% 3 Missing and 10 partials ⚠️
...jdbc/uniformsplitter/UniformSplitterDBAdapter.java 75.00% 1 Missing ⚠️
...niformsplitter/stringmapper/CollationOrderRow.java 87.50% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@              Coverage Diff              @@
##               main    #3695       +/-   ##
=============================================
+ Coverage     33.32%   52.66%   +19.34%     
- Complexity      481     6285     +5804     
=============================================
  Files           215     1065      +850     
  Lines         12862    64557    +51695     
  Branches       1262     7149     +5887     
=============================================
+ Hits           4286    33998    +29712     
- Misses         8236    28267    +20031     
- Partials        340     2292     +1952     
Components Coverage Δ
spanner-templates 72.32% <91.75%> (∅)
spanner-import-export 68.64% <ø> (∅)
spanner-live-forward-migration 80.87% <ø> (∅)
spanner-live-reverse-replication 77.58% <ø> (∅)
spanner-bulk-migration 89.43% <91.75%> (∅)
gcs-spanner-dv 85.75% <ø> (∅)
Files with missing lines Coverage Δ
...c/main/java/org/apache/beam/it/gcp/JDBCBaseIT.java 0.00% <ø> (ø)
...jdbc/dialectadapter/mysql/MysqlDialectAdapter.java 97.94% <100.00%> (ø)
...c/uniformsplitter/stringmapper/CollationIndex.java 97.26% <100.00%> (ø)
...jdbc/uniformsplitter/UniformSplitterDBAdapter.java 60.00% <75.00%> (ø)
...niformsplitter/stringmapper/CollationOrderRow.java 96.66% <87.50%> (ø)
.../uniformsplitter/stringmapper/CollationMapper.java 93.30% <91.87%> (ø)

... and 868 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Co-authored-by: Sandeep Mishra <iamsandeep@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant