-
Notifications
You must be signed in to change notification settings - Fork 972
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
RANGER-4932:Handling Specified key was too long; max key length error #391
base: master
Are you sure you want to change the base?
Conversation
LGTM! @spolavarpau1 / @princeap173 can you please help review. |
Changing the DEFAULT CHARSET for just one table might cause issue if the DEFAULT CHARSET is set to something different. |
Hello @bhavikpatel9977 ,
Could you please advise whether one of these approaches would be optimal, or if there are any better alternatives we should consider? |
Hi team, I'm just checking in on the status of my pull request. Would you be able to review it soon? |
Hi team, |
Hi @basapuram-kumar , My input is, it should be defined at schema/DB level ( may be using DB server configs), means same charset for entire Ranger. Now coming to Latin1, it will limit the characters that Ranger supports or will support in future. On the second approach, where you suggested to reduce the length of trx_id(255), it may work. But if intention is to keep exact transactionId in the index, then it would be an issue. Few questions: I am also exploring this and will add my input here. |
Hello @vikaskr22 , yes, absolutely agreed on the pointers. For the asked info,
I am using mysql > show create table x_trx_log_v2;
|
What changes were proposed in this pull request?
Proposed changes are mentioned at RANGER-4932
How was this patch tested?
tested this patch on my local cluster during the migration of ranger from 2.3.0 to 2.5.0, and with proposed changes, able to fix this issue.