-
Notifications
You must be signed in to change notification settings - Fork 150
[TRAFODION-2908] create table with wrong char length hang and crash #1441
Conversation
|
Check Test Started: https://jenkins.esgyn.com/job/Check-PR-master/2417/ |
|
Test Passed. https://jenkins.esgyn.com/job/Check-PR-master/2417/ |
core/sql/bin/SqlciErrors.txt
Outdated
| 1139 ZZZZZ 99999 BEGINNER MAJOR DBADMIN System-generated column $0~ColumnName of base table $1~TableName cannot appear in the search condition of a check constraint definition. | ||
| 1140 ZZZZZ 99999 BEGINNER MAJOR DBADMIN Row-length $0~int0 exceeds the maximum allowed row-length of $1~int1 for table $2~TableName. | ||
| 1141 ZZZZZ 99999 BEGINNER MAJOR DBADMIN --- unused --- | ||
| 1141 ZZZZZ 99999 BEGINNER MAJOR DBADMIN Key-length $0~int0 exceeds the maximum allowed rowkey length $1~int1. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider rewording: "Key length $0-int0 exceeds the maximum allowed key length of $1~int1".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, would you please add the new message to the Messages Guide? Thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Dave for the review, I will update teh Message Guide and modify the workding
|
New Check Test Started: https://jenkins.esgyn.com/job/Check-PR-master/2422/ |
|
Test Passed. https://jenkins.esgyn.com/job/Check-PR-master/2422/ |
DaveBirdsall
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 Looks good to me.
|
Thanks Dave for the review. |
add a check if the key length is too long report error. Otherwise, SQL will go into a very long process to build the encoded key and finally failed. And in some cases crash, it makes little sense to check why it crash, so just add check and return error when key is too long.
HBase max rowkey len is 32K, so it is the hard limit for now.