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

schema validation update for array type #310

Merged
merged 2 commits into from
Oct 2, 2019
Merged

schema validation update for array type #310

merged 2 commits into from
Oct 2, 2019

Conversation

voyager-dw
Copy link
Contributor

No description provided.

@codecov
Copy link

codecov bot commented Sep 27, 2019

Codecov Report

Merging #310 into master will increase coverage by 0.06%.
The diff coverage is 100%.

Impacted file tree graph

@@            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
Impacted Files Coverage Δ
memstore/merge.go 96.65% <ø> (ø) ⬆️
metastore/validator.go 84.42% <100%> (+0.8%) ⬆️
cluster/topology/healthtracking_dynamic.go 56.36% <0%> (-3.64%) ⬇️
api/debug_handler.go 74.02% <0%> (+0.51%) ⬆️
datanode/datanode.go 18.81% <0%> (+1.13%) ⬆️
subscriber/common/job/driver.go 67.73% <0%> (+1.41%) ⬆️
controller/mutators/etcd/schema_mutator.go 63.58% <0%> (+1.73%) ⬆️
broker/query_plan_non_agg.go 79.04% <0%> (+4.19%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3584555...87478cd. Read the comment docs.

metastore/common/errors.go Outdated Show resolved Hide resolved
metastore/validator.go Outdated Show resolved Hide resolved
@@ -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 {
Copy link
Contributor

Choose a reason for hiding this comment

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

memCom.IsArrayType(colDataType)

@voyager-dw voyager-dw merged commit b2325df into master Oct 2, 2019
@voyager-dw voyager-dw deleted the array_schema branch October 2, 2019 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants