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

change client_info column_type to MEDIUMTEXT #23427

Merged
merged 1 commit into from
Nov 20, 2024

Conversation

avirlrma
Copy link
Contributor

Fixes #22362
Changed the column data-type for client_info from varchar(255) to MEDIUMTEXT in mysql event listener. This will allow for a larger payload to be stored, and is also inline with other columns(possibly big) in the table.

Release notes

( ) This is not user-visible or is docs only, and no release notes are required.
( ) Release notes are required. Please propose a release note for me.
( X ) Release notes are required, with the following suggested text:

# MySQL Event Listener 
* Change data type for client_info in mysql event listener to MEDIUMTEXT ({issue}`22362`)

Copy link

cla-bot bot commented Sep 15, 2024

Thank you for your pull request and welcome to the Trino community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. Continue to work with us on the review and improvements in this PR, and submit the signed CLA to cla@trino.io. Photos, scans, or digitally-signed PDF files are all suitable. Processing may take a few days. The CLA needs to be on file before we merge your changes. For more information, see https://github.com/trinodb/cla

@avirlrma
Copy link
Contributor Author

@cla-bot check

Copy link

cla-bot bot commented Sep 15, 2024

Thank you for your pull request and welcome to the Trino community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. Continue to work with us on the review and improvements in this PR, and submit the signed CLA to cla@trino.io. Photos, scans, or digitally-signed PDF files are all suitable. Processing may take a few days. The CLA needs to be on file before we merge your changes. For more information, see https://github.com/trinodb/cla

Copy link

cla-bot bot commented Sep 15, 2024

The cla-bot has been summoned, and re-checked this pull request!

@@ -32,7 +32,7 @@ public interface QueryDao
" trace_token VARCHAR(255) NULL,\n" +
" remote_client_address VARCHAR(255) NULL,\n" +
" user_agent VARCHAR(255) NULL,\n" +
" client_info VARCHAR(255) NULL,\n" +
" client_info MEDIUMTEXT NULL,\n" +
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But how would perform migration - In case of older tables which has this column as a VARCHAR(255)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think for both this and the DB resource groups we rely on users manually managing the schema. There are no migrations.

Introducing migrations is a bigger task here and with how less often the changes happen here I think it's fine to skip for now.

@ebyhr
Copy link
Member

ebyhr commented Oct 2, 2024

@cla-bot check

@cla-bot cla-bot bot added the cla-signed label Oct 2, 2024
Copy link

cla-bot bot commented Oct 2, 2024

The cla-bot has been summoned, and re-checked this pull request!

Copy link

github-actions bot commented Nov 7, 2024

This pull request has gone a while without any activity. Tagging the Trino developer relations team: @bitsondatadev @colebow @mosabua

@github-actions github-actions bot added the stale label Nov 7, 2024
@hashhar hashhar merged commit 758f3b2 into trinodb:master Nov 20, 2024
16 checks passed
@github-actions github-actions bot added this to the 465 milestone Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

Change length of client_info column in MySQL event listener
4 participants