-
Notifications
You must be signed in to change notification settings - Fork 234
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
schema validation update for array type #310
Conversation
Codecov Report
@@ Coverage Diff @@
## master #310 +/- ##
==========================================
+ Coverage 71.84% 71.91% +0.06%
==========================================
Files 166 166
Lines 23367 23391 +24
==========================================
+ Hits 16789 16822 +33
+ Misses 5285 5273 -12
- Partials 1293 1296 +3
Continue to review full report at Codecov.
|
@@ -161,6 +165,10 @@ func (v tableSchemaValidatorImpl) validateIndividualSchema(table *common.Table, | |||
if colIdDedup[sortColumnId] { | |||
return common.ErrDuplicatedColumn | |||
} | |||
colDataType := memCom.DataTypeFromString(table.Columns[sortColumnId].Type) | |||
if colDataType >= memCom.ArrayBool && colDataType <= memCom.ArrayInt64 { |
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.
memCom.IsArrayType(colDataType)
No description provided.