From 4921a688056366bf4278c696f084f14b0219f15e Mon Sep 17 00:00:00 2001 From: Dmitry Kropachev Date: Sun, 4 Jun 2023 17:37:34 -0400 Subject: [PATCH] feat(generators): add tests for genCheckStmt and GenDDLStmt functions --- pkg/generators/schema_check_stmt_test.go | 194 ++++++++++++++++ pkg/generators/schema_ddl_stmt_test.go | 114 ++++++++++ pkg/generators/schema_mutation_stmt_test.go | 88 ++++---- pkg/generators/statement_generator.go | 123 +++++----- pkg/generators/suite_const_test.go | 210 +++++++++++++++-- pkg/generators/suite_utils_test.go | 173 ++++++++++++-- .../check/clustering_range.json | 24 +- .../multiple_partition_clustering_range.json | 48 ++-- .../check/single_index.json | 8 +- .../test_expected_data/ddl/add_column.json | 211 ++++++++++++++++++ .../test_expected_data/ddl/drop_column.json | 2 +- .../test_expected_data/mutate/delete.json | 68 ++++++ .../test_expected_data/mutate/insert.json | 112 ++++++++++ .../test_expected_data/mutate/insert_j.json | 2 +- .../test_expected_data/mutate/update.json | 68 ++++++ 15 files changed, 1264 insertions(+), 181 deletions(-) create mode 100644 pkg/generators/schema_check_stmt_test.go create mode 100644 pkg/generators/schema_ddl_stmt_test.go create mode 100644 pkg/generators/test_expected_data/ddl/add_column.json create mode 100644 pkg/generators/test_expected_data/mutate/delete.json create mode 100644 pkg/generators/test_expected_data/mutate/insert.json create mode 100644 pkg/generators/test_expected_data/mutate/update.json diff --git a/pkg/generators/schema_check_stmt_test.go b/pkg/generators/schema_check_stmt_test.go new file mode 100644 index 00000000..f17a98dc --- /dev/null +++ b/pkg/generators/schema_check_stmt_test.go @@ -0,0 +1,194 @@ +// Copyright 2019 ScyllaDB +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package generators + +import ( + "testing" + + "github.com/scylladb/gemini/pkg/utils" +) + +var checkDataPath = "./test_expected_data/check/" + +// GenCheck functions tests +func TestGenSinglePartitionQuery(t *testing.T) { + utils.SetUnderTest() + t.Parallel() + expected := initExpected(t, checkDataPath, "single_partition.json", genSinglePartitionQueryCases, *updateExpected) + if *updateExpected { + defer expected.updateExpected(t) + } + for idx := range genSinglePartitionQueryCases { + caseName := genSinglePartitionQueryCases[idx] + t.Run(caseName, + func(subT *testing.T) { + schema, prc, gen, rnd, opts := getAllForTestStmt(subT, caseName) + stmt := genSinglePartitionQuery(schema, schema.Tables[0], gen, rnd, prc, opts.mvNum) + validateStmt(subT, stmt, nil) + expected.CompareOrStore(subT, caseName, stmt) + }) + } +} + +func TestGenMultiplePartitionQuery(t *testing.T) { + utils.SetUnderTest() + t.Parallel() + expected := initExpected(t, checkDataPath, "multiple_partition.json", genMultiplePartitionQueryCases, *updateExpected) + if *updateExpected { + defer expected.updateExpected(t) + } + for idx := range genMultiplePartitionQueryCases { + caseName := genMultiplePartitionQueryCases[idx] + t.Run(caseName, + func(subT *testing.T) { + schema, prc, gen, rnd, opts := getAllForTestStmt(subT, caseName) + stmt := genMultiplePartitionQuery(schema, schema.Tables[0], gen, rnd, prc, opts.mvNum, opts.pkCount) + validateStmt(subT, stmt, nil) + expected.CompareOrStore(subT, caseName, stmt) + }) + } +} + +func TestGenClusteringRangeQuery(t *testing.T) { + utils.SetUnderTest() + t.Parallel() + expected := initExpected(t, checkDataPath, "clustering_range.json", genClusteringRangeQueryCases, *updateExpected) + if *updateExpected { + defer expected.updateExpected(t) + } + for idx := range genClusteringRangeQueryCases { + caseName := genClusteringRangeQueryCases[idx] + t.Run(caseName, + func(subT *testing.T) { + schema, prc, gen, rnd, opts := getAllForTestStmt(subT, caseName) + stmt := genClusteringRangeQuery(schema, schema.Tables[0], gen, rnd, prc, opts.mvNum, opts.ckCount) + validateStmt(subT, stmt, nil) + expected.CompareOrStore(subT, caseName, stmt) + }) + } +} + +func TestGenMultiplePartitionClusteringRangeQuery(t *testing.T) { + utils.SetUnderTest() + t.Parallel() + expected := initExpected(t, checkDataPath, "multiple_partition_clustering_range.json", genMultiplePartitionClusteringRangeQueryCases, *updateExpected) + if *updateExpected { + defer expected.updateExpected(t) + } + for idx := range genMultiplePartitionClusteringRangeQueryCases { + caseName := genMultiplePartitionClusteringRangeQueryCases[idx] + t.Run(caseName, + func(subT *testing.T) { + schema, prc, gen, rnd, opts := getAllForTestStmt(subT, caseName) + stmt := genMultiplePartitionClusteringRangeQuery(schema, schema.Tables[0], gen, rnd, prc, opts.mvNum, opts.pkCount, opts.ckCount) + validateStmt(subT, stmt, nil) + expected.CompareOrStore(subT, caseName, stmt) + }) + } +} + +func TestGenSingleIndexQuery(t *testing.T) { + utils.SetUnderTest() + t.Parallel() + expected := initExpected(t, checkDataPath, "single_index.json", genSingleIndexQueryCases, *updateExpected) + if *updateExpected { + defer expected.updateExpected(t) + } + for idx := range genSingleIndexQueryCases { + caseName := genSingleIndexQueryCases[idx] + t.Run(caseName, + func(subT *testing.T) { + schema, prc, gen, rnd, opts := getAllForTestStmt(subT, caseName) + stmt := genSingleIndexQuery(schema, schema.Tables[0], gen, rnd, prc, opts.idxCount) + validateStmt(subT, stmt, nil) + expected.CompareOrStore(subT, caseName, stmt) + }) + } +} + +func BenchmarkGenSinglePartitionQuery(t *testing.B) { + utils.SetUnderTest() + for idx := range genSinglePartitionQueryCases { + caseName := genSinglePartitionQueryCases[idx] + t.Run(caseName, + func(subT *testing.B) { + schema, prc, gen, rnd, opts := getAllForTestStmt(subT, caseName) + subT.ResetTimer() + for x := 0; x < subT.N; x++ { + _ = genSinglePartitionQuery(schema, schema.Tables[0], gen, rnd, prc, opts.mvNum) + } + }) + } +} + +func BenchmarkGenMultiplePartitionQuery(t *testing.B) { + utils.SetUnderTest() + for idx := range genMultiplePartitionQueryCases { + caseName := genMultiplePartitionQueryCases[idx] + t.Run(caseName, + func(subT *testing.B) { + schema, prc, gen, rnd, opts := getAllForTestStmt(subT, caseName) + subT.ResetTimer() + for x := 0; x < subT.N; x++ { + _ = genMultiplePartitionQuery(schema, schema.Tables[0], gen, rnd, prc, opts.mvNum, opts.pkCount) + } + }) + } +} + +func BenchmarkGenClusteringRangeQuery(t *testing.B) { + utils.SetUnderTest() + for idx := range genClusteringRangeQueryCases { + caseName := genClusteringRangeQueryCases[idx] + t.Run(caseName, + func(subT *testing.B) { + schema, prc, gen, rnd, opts := getAllForTestStmt(subT, caseName) + subT.ResetTimer() + for x := 0; x < subT.N; x++ { + _ = genClusteringRangeQuery(schema, schema.Tables[0], gen, rnd, prc, opts.mvNum, opts.ckCount) + } + }) + } +} + +func BenchmarkGenMultiplePartitionClusteringRangeQuery(t *testing.B) { + utils.SetUnderTest() + for idx := range genMultiplePartitionClusteringRangeQueryCases { + caseName := genMultiplePartitionClusteringRangeQueryCases[idx] + t.Run(caseName, + func(subT *testing.B) { + schema, prc, gen, rnd, opts := getAllForTestStmt(subT, caseName) + subT.ResetTimer() + for x := 0; x < subT.N; x++ { + _ = genMultiplePartitionClusteringRangeQuery(schema, schema.Tables[0], gen, rnd, prc, opts.mvNum, opts.pkCount, opts.ckCount) + } + }) + } +} + +func BenchmarkGenSingleIndexQuery(t *testing.B) { + utils.SetUnderTest() + for idx := range genSingleIndexQueryCases { + caseName := genSingleIndexQueryCases[idx] + t.Run(caseName, + func(subT *testing.B) { + schema, prc, gen, rnd, opts := getAllForTestStmt(subT, caseName) + subT.ResetTimer() + for x := 0; x < subT.N; x++ { + _ = genSingleIndexQuery(schema, schema.Tables[0], gen, rnd, prc, opts.idxCount) + } + }) + } +} diff --git a/pkg/generators/schema_ddl_stmt_test.go b/pkg/generators/schema_ddl_stmt_test.go new file mode 100644 index 00000000..7e333d49 --- /dev/null +++ b/pkg/generators/schema_ddl_stmt_test.go @@ -0,0 +1,114 @@ +// Copyright 2019 ScyllaDB +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package generators + +import ( + "strconv" + "strings" + "testing" + + "github.com/scylladb/gemini/pkg/coltypes" + "github.com/scylladb/gemini/pkg/utils" +) + +var ddlDataPath = "./test_expected_data/ddl/" + +func TestGenDropColumnStmt(t *testing.T) { + utils.SetUnderTest() + t.Parallel() + + expected := initExpected(t, ddlDataPath, "drop_column.json", genDropColumnStmtCases, *updateExpected) + if *updateExpected { + defer expected.updateExpected(t) + } + for idx := range genDropColumnStmtCases { + caseName := genDropColumnStmtCases[idx] + t.Run(caseName, + func(subT *testing.T) { + schema, _, _, _, opts := getAllForTestStmt(subT, caseName) + stmt, err := genDropColumnStmt(schema.Tables[0], schema.Keyspace.Name, opts.delNum) + validateStmt(subT, stmt, err) + expected.CompareOrStore(subT, caseName, stmt) + }) + } +} + +func TestGenAddColumnStmt(t *testing.T) { + utils.SetUnderTest() + t.Parallel() + checkOnAllTypesInAddColumnCases(t, genAddColumnStmtCases) + expected := initExpected(t, ddlDataPath, "add_column.json", genAddColumnStmtCases, *updateExpected) + if *updateExpected { + defer expected.updateExpected(t) + } + for idx := range genAddColumnStmtCases { + caseName := genAddColumnStmtCases[idx] + t.Run(caseName, + func(subT *testing.T) { + schema, _, _, _, opts := getAllForTestStmt(subT, caseName) + stmt, err := genAddColumnStmt(schema.Tables[0], schema.Keyspace.Name, &opts.addType) + validateStmt(subT, stmt, err) + expected.CompareOrStore(subT, caseName, stmt) + }) + } +} + +func BenchmarkGenDropColumnStmt(t *testing.B) { + utils.SetUnderTest() + for idx := range genDropColumnStmtCases { + caseName := genDropColumnStmtCases[idx] + t.Run(caseName, + func(subT *testing.B) { + schema, _, _, _, opts := getAllForTestStmt(subT, caseName) + subT.ResetTimer() + for x := 0; x < subT.N; x++ { + _, _ = genDropColumnStmt(schema.Tables[0], schema.Keyspace.Name, opts.delNum) + } + }) + } +} + +func BenchmarkGenAddColumnStmt(t *testing.B) { + utils.SetUnderTest() + for idx := range genAddColumnStmtCases { + caseName := genAddColumnStmtCases[idx] + t.Run(caseName, + func(subT *testing.B) { + schema, _, _, _, opts := getAllForTestStmt(subT, caseName) + subT.ResetTimer() + for x := 0; x < subT.N; x++ { + _, _ = genAddColumnStmt(schema.Tables[0], schema.Keyspace.Name, &opts.addType) + } + }) + } +} + +func checkOnAllTypesInAddColumnCases(t *testing.T, cases []string) { + founded := 0 + for j := 0; j < len(coltypes.AllTypes); j++ { + for i := range cases { + caseName := cases[i] + _, caseNum, _ := strings.Cut(caseName, ".") + caseN, _ := strconv.ParseInt(caseNum, 0, 8) + num := int(caseN) + if num == j { + founded++ + } + } + } + if founded != len(coltypes.AllTypes) || founded != len(cases) { + t.Error("not all column types in genAddColumnStmtCases") + } +} diff --git a/pkg/generators/schema_mutation_stmt_test.go b/pkg/generators/schema_mutation_stmt_test.go index 417df9dc..3d8c1817 100644 --- a/pkg/generators/schema_mutation_stmt_test.go +++ b/pkg/generators/schema_mutation_stmt_test.go @@ -20,42 +20,12 @@ import ( "github.com/scylladb/gemini/pkg/utils" ) -var ( - genInsertStmtCases = []string{ - "pk1_ck0_col0", - "pk1_ck1_col1", - "pk3_ck3_col5", - "pkAll_ckAll_colAll", - "pk1_ck1_col1cr", - "pk3_ck3_col3cr", - "pk1_ck0_col0_lwt", - "pk1_ck1_col1_lwt", - "pk1_ck1_col1cr_lwt", - "pkAll_ckAll_colAll_lwt", - } - genUpdateStmtCases = []string{ - "pk1_ck0_col0", - "pk1_ck1_col1", - "pk3_ck3_col5", - "pkAll_ckAll_colAll", - "pk1_ck1_col1cr", - "pk3_ck3_col3cr", - } - - genDeleteStmtCases = []string{ - "pk1_ck0_col1", - "pk1_ck1_col1", - "pk3_ck3_col5", - "pkAll_ckAll_colAll", - "pk1_ck1_col1cr", - "pk3_ck3_col3cr", - } -) +var mutateDataPath = "./test_expected_data/mutate/" func TestGenInsertStmt(t *testing.T) { utils.SetUnderTest() t.Parallel() - expected := initExpected(t, "insert.json", genInsertStmtCases, *updateExpected) + expected := initExpected(t, mutateDataPath, "insert.json", genInsertStmtCases, *updateExpected) if *updateExpected { defer expected.updateExpected(t) } @@ -63,8 +33,27 @@ func TestGenInsertStmt(t *testing.T) { caseName := genInsertStmtCases[idx] t.Run(caseName, func(subT *testing.T) { - schema, prc, gen, rnd, useLWT, _ := getAllForTestStmt(subT, caseName) - stmt, err := genInsertStmt(schema, schema.Tables[0], gen.Get(), rnd, prc, useLWT) + schema, prc, gen, rnd, opts := getAllForTestStmt(subT, caseName) + stmt, err := genInsertStmt(schema, schema.Tables[0], gen.Get(), rnd, prc, opts.useLWT) + validateStmt(subT, stmt, err) + expected.CompareOrStore(subT, caseName, stmt) + }) + } +} + +func TestGenInsertJSONStmt(t *testing.T) { + utils.SetUnderTest() + t.Parallel() + expected := initExpected(t, mutateDataPath, "insert_j.json", genInsertJSONStmtCases, *updateExpected) + if *updateExpected { + defer expected.updateExpected(t) + } + for idx := range genInsertJSONStmtCases { + caseName := genInsertJSONStmtCases[idx] + t.Run(caseName, + func(subT *testing.T) { + schema, prc, gen, rnd, _ := getAllForTestStmt(subT, caseName) + stmt, err := genInsertJSONStmt(schema, schema.Tables[0], gen.Get(), rnd, prc) validateStmt(subT, stmt, err) expected.CompareOrStore(subT, caseName, stmt) }) @@ -74,7 +63,7 @@ func TestGenInsertStmt(t *testing.T) { func TestGenUpdateStmt(t *testing.T) { utils.SetUnderTest() t.Parallel() - expected := initExpected(t, "update.json", genUpdateStmtCases, *updateExpected) + expected := initExpected(t, mutateDataPath, "update.json", genUpdateStmtCases, *updateExpected) if *updateExpected { defer expected.updateExpected(t) } @@ -82,7 +71,7 @@ func TestGenUpdateStmt(t *testing.T) { caseName := genUpdateStmtCases[idx] t.Run(caseName, func(subT *testing.T) { - schema, prc, gen, rnd, _, _ := getAllForTestStmt(subT, caseName) + schema, prc, gen, rnd, _ := getAllForTestStmt(subT, caseName) stmt, err := genUpdateStmt(schema, schema.Tables[0], gen.Get(), rnd, prc) validateStmt(subT, stmt, err) expected.CompareOrStore(subT, caseName, stmt) @@ -93,7 +82,7 @@ func TestGenUpdateStmt(t *testing.T) { func TestGenDeleteRows(t *testing.T) { utils.SetUnderTest() t.Parallel() - expected := initExpected(t, "delete.json", genDeleteStmtCases, *updateExpected) + expected := initExpected(t, mutateDataPath, "delete.json", genDeleteStmtCases, *updateExpected) if *updateExpected { defer expected.updateExpected(t) } @@ -101,7 +90,7 @@ func TestGenDeleteRows(t *testing.T) { caseName := genDeleteStmtCases[idx] t.Run(caseName, func(subT *testing.T) { - schema, prc, gen, rnd, _, _ := getAllForTestStmt(subT, caseName) + schema, prc, gen, rnd, _ := getAllForTestStmt(subT, caseName) stmt, err := genDeleteRows(schema, schema.Tables[0], gen.Get(), rnd, prc) validateStmt(subT, stmt, err) expected.CompareOrStore(subT, caseName, stmt) @@ -115,10 +104,25 @@ func BenchmarkGenInsertStmt(t *testing.B) { caseName := genInsertStmtCases[idx] t.Run(caseName, func(subT *testing.B) { - schema, prc, gen, rnd, useLWT, _ := getAllForTestStmt(subT, caseName) + schema, prc, gen, rnd, opts := getAllForTestStmt(subT, caseName) + subT.ResetTimer() + for x := 0; x < subT.N; x++ { + _, _ = genInsertStmt(schema, schema.Tables[0], gen.Get(), rnd, prc, opts.useLWT) + } + }) + } +} + +func BenchmarkGenInsertJSONStmt(t *testing.B) { + utils.SetUnderTest() + for idx := range genInsertJSONStmtCases { + caseName := genInsertJSONStmtCases[idx] + t.Run(caseName, + func(subT *testing.B) { + schema, prc, gen, rnd, _ := getAllForTestStmt(subT, caseName) subT.ResetTimer() for x := 0; x < subT.N; x++ { - _, _ = genInsertStmt(schema, schema.Tables[0], gen.Get(), rnd, prc, useLWT) + _, _ = genInsertJSONStmt(schema, schema.Tables[0], gen.Get(), rnd, prc) } }) } @@ -130,7 +134,7 @@ func BenchmarkGenUpdateStmt(t *testing.B) { caseName := genUpdateStmtCases[idx] t.Run(caseName, func(subT *testing.B) { - schema, prc, gen, rnd, _, _ := getAllForTestStmt(subT, caseName) + schema, prc, gen, rnd, _ := getAllForTestStmt(subT, caseName) subT.ResetTimer() for x := 0; x < subT.N; x++ { _, _ = genUpdateStmt(schema, schema.Tables[0], gen.Get(), rnd, prc) @@ -145,7 +149,7 @@ func BenchmarkGenDeleteRows(t *testing.B) { caseName := genDeleteStmtCases[idx] t.Run(caseName, func(subT *testing.B) { - schema, prc, gen, rnd, _, _ := getAllForTestStmt(subT, caseName) + schema, prc, gen, rnd, _ := getAllForTestStmt(subT, caseName) subT.ResetTimer() for x := 0; x < subT.N; x++ { _, _ = genDeleteRows(schema, schema.Tables[0], gen.Get(), rnd, prc) diff --git a/pkg/generators/statement_generator.go b/pkg/generators/statement_generator.go index d302f0d3..134a0fcd 100644 --- a/pkg/generators/statement_generator.go +++ b/pkg/generators/statement_generator.go @@ -70,50 +70,46 @@ func GenCheckStmt( rnd *rand.Rand, p *typedef.PartitionRangeConfig, ) *typedef.Stmt { - var n int + n := 0 + mvNum := -1 if len(table.Indexes) > 0 { n = rnd.Intn(5) } else { n = rnd.Intn(4) } - var mv *testschema.MaterializedView if len(table.MaterializedViews) > 0 && rnd.Int()%2 == 0 { - mv = &table.MaterializedViews[rnd.Intn(len(table.MaterializedViews))] + mvNum = utils.RandInt2(rnd, 0, len(table.MaterializedViews)) } maxClusteringRels := 0 numQueryPKs := 0 - switch n { case 0: - return genSinglePartitionQuery(s, table, g, rnd, p, mv) + return genSinglePartitionQuery(s, table, g, rnd, p, mvNum) case 1: lenPartitionKeys := len(table.PartitionKeys) - if len(table.MaterializedViews) > 0 && rnd.Int()%2 == 0 { - mv = &table.MaterializedViews[rnd.Intn(len(table.MaterializedViews))] - lenPartitionKeys = len(mv.PartitionKeys) + if mvNum >= 0 { + lenPartitionKeys = len(table.MaterializedViews[mvNum].PartitionKeys) } numQueryPKs = utils.RandInt2(rnd, 1, lenPartitionKeys) multiplier := int(math.Pow(float64(numQueryPKs), float64(lenPartitionKeys))) if multiplier > 100 { numQueryPKs = 1 } - return genMultiplePartitionQuery(s, table, g, rnd, p, mv, numQueryPKs) + return genMultiplePartitionQuery(s, table, g, rnd, p, mvNum, numQueryPKs) case 2: lenClusteringKeys := len(table.ClusteringKeys) - if len(table.MaterializedViews) > 0 && rnd.Int()%2 == 0 { - mv = &table.MaterializedViews[rnd.Intn(len(table.MaterializedViews))] - lenClusteringKeys = len(mv.ClusteringKeys) + if mvNum >= 0 { + lenClusteringKeys = len(table.MaterializedViews[mvNum].ClusteringKeys) } maxClusteringRels = utils.RandInt2(rnd, 0, lenClusteringKeys) - return genClusteringRangeQuery(s, table, g, rnd, p, mv, maxClusteringRels) + return genClusteringRangeQuery(s, table, g, rnd, p, mvNum, maxClusteringRels) case 3: lenPartitionKeys := len(table.PartitionKeys) lenClusteringKeys := len(table.ClusteringKeys) - if len(table.MaterializedViews) > 0 && rnd.Int()%2 == 0 { - mv = &table.MaterializedViews[rnd.Intn(len(table.MaterializedViews))] - lenPartitionKeys = len(mv.PartitionKeys) - lenClusteringKeys = len(mv.ClusteringKeys) + if mvNum >= 0 { + lenPartitionKeys = len(table.MaterializedViews[mvNum].PartitionKeys) + lenClusteringKeys = len(table.MaterializedViews[mvNum].ClusteringKeys) } numQueryPKs = utils.RandInt2(rnd, 1, lenPartitionKeys) multiplier := int(math.Pow(float64(numQueryPKs), float64(lenPartitionKeys))) @@ -121,15 +117,15 @@ func GenCheckStmt( numQueryPKs = 1 } maxClusteringRels = utils.RandInt2(rnd, 0, lenClusteringKeys) - return genMultiplePartitionClusteringRangeQuery(s, table, g, rnd, p, mv, numQueryPKs, maxClusteringRels) + return genMultiplePartitionClusteringRangeQuery(s, table, g, rnd, p, mvNum, numQueryPKs, maxClusteringRels) case 4: // Reducing the probability to hit these since they often take a long time to run switch rnd.Intn(5) { case 0: - indexes := table.Indexes[:utils.RandInt2(rnd, 1, len(table.Indexes))] - return genSingleIndexQuery(s, table, g, rnd, p, indexes) + idxCount := utils.RandInt2(rnd, 1, len(table.Indexes)) + return genSingleIndexQuery(s, table, g, rnd, p, idxCount) default: - return genSinglePartitionQuery(s, table, g, rnd, p, mv) + return genSinglePartitionQuery(s, table, g, rnd, p, mvNum) } } return nil @@ -138,10 +134,10 @@ func GenCheckStmt( func genSinglePartitionQuery( s *testschema.Schema, t *testschema.Table, - g *Generator, + g GeneratorInterface, r *rand.Rand, p *typedef.PartitionRangeConfig, - mv *testschema.MaterializedView, + mvNum int, ) *typedef.Stmt { t.RLock() defer t.RUnlock() @@ -154,11 +150,14 @@ func genSinglePartitionQuery( tableName := t.Name partitionKeys := t.PartitionKeys values := valuesWithToken.Value.Copy() - if mv != nil { - tableName = mv.Name - partitionKeys = mv.PartitionKeys - mvValues = append(mvValues, mv.NonPrimaryKey.Type.GenValue(r, p)...) - values = append(mvValues, values...) + if mvNum >= 0 { + tableName = t.MaterializedViews[mvNum].Name + partitionKeys = t.MaterializedViews[mvNum].PartitionKeys + if t.MaterializedViews[mvNum].NonPrimaryKey != (testschema.ColumnDef{}) { + mvValues = append(mvValues, t.MaterializedViews[mvNum].NonPrimaryKey.Type.GenValue(r, p)...) + values = append(mvValues, values...) + } + } builder := qb.Select(s.Keyspace.Name + "." + tableName) typs := make([]typedef.Type, 0, 10) @@ -181,11 +180,10 @@ func genSinglePartitionQuery( func genMultiplePartitionQuery( s *testschema.Schema, t *testschema.Table, - g *Generator, + g GeneratorInterface, r *rand.Rand, p *typedef.PartitionRangeConfig, - mv *testschema.MaterializedView, - numQueryPKs int, + mvNum, numQueryPKs int, ) *typedef.Stmt { t.RLock() defer t.RUnlock() @@ -196,9 +194,9 @@ func genMultiplePartitionQuery( ) tableName := t.Name partitionKeys := t.PartitionKeys - if mv != nil { - tableName = mv.Name - partitionKeys = mv.PartitionKeys + if mvNum >= 0 { + tableName = t.MaterializedViews[mvNum].Name + partitionKeys = t.MaterializedViews[mvNum].PartitionKeys } builder := qb.Select(s.Keyspace.Name + "." + tableName) @@ -232,11 +230,10 @@ func genMultiplePartitionQuery( func genClusteringRangeQuery( s *testschema.Schema, t *testschema.Table, - g *Generator, + g GeneratorInterface, r *rand.Rand, p *typedef.PartitionRangeConfig, - mv *testschema.MaterializedView, - maxClusteringRels int, + mvNum, maxClusteringRels int, ) *typedef.Stmt { t.RLock() defer t.RUnlock() @@ -254,12 +251,14 @@ func genClusteringRangeQuery( clusteringKeys := t.ClusteringKeys values := vs.Value.Copy() - if mv != nil { - tableName = mv.Name - partitionKeys = mv.PartitionKeys - clusteringKeys = mv.ClusteringKeys - mvValues = append(values, mv.NonPrimaryKey.Type.GenValue(r, p)...) - values = append(mvValues, values...) + if mvNum >= 0 { + tableName = t.MaterializedViews[mvNum].Name + partitionKeys = t.MaterializedViews[mvNum].PartitionKeys + clusteringKeys = t.MaterializedViews[mvNum].ClusteringKeys + if t.MaterializedViews[mvNum].NonPrimaryKey != (testschema.ColumnDef{}) { + mvValues = append(mvValues, t.MaterializedViews[mvNum].NonPrimaryKey.Type.GenValue(r, p)...) + values = append(mvValues, values...) + } } builder := qb.Select(s.Keyspace.Name + "." + tableName) @@ -291,11 +290,10 @@ func genClusteringRangeQuery( func genMultiplePartitionClusteringRangeQuery( s *testschema.Schema, t *testschema.Table, - g *Generator, + g GeneratorInterface, r *rand.Rand, p *typedef.PartitionRangeConfig, - mv *testschema.MaterializedView, - numQueryPKs, maxClusteringRels int, + mvNum, numQueryPKs, maxClusteringRels int, ) *typedef.Stmt { t.RLock() defer t.RUnlock() @@ -307,10 +305,10 @@ func genMultiplePartitionClusteringRangeQuery( tableName := t.Name partitionKeys := t.PartitionKeys clusteringKeys := t.ClusteringKeys - if mv != nil { - tableName = mv.Name - partitionKeys = mv.PartitionKeys - clusteringKeys = mv.ClusteringKeys + if mvNum >= 0 { + tableName = t.MaterializedViews[mvNum].Name + partitionKeys = t.MaterializedViews[mvNum].PartitionKeys + clusteringKeys = t.MaterializedViews[mvNum].ClusteringKeys } builder := qb.Select(s.Keyspace.Name + "." + tableName) @@ -352,7 +350,14 @@ func genMultiplePartitionClusteringRangeQuery( } } -func genSingleIndexQuery(s *testschema.Schema, t *testschema.Table, g *Generator, r *rand.Rand, p *typedef.PartitionRangeConfig, indexes []typedef.IndexDef) *typedef.Stmt { +func genSingleIndexQuery( + s *testschema.Schema, + t *testschema.Table, + g GeneratorInterface, + r *rand.Rand, + p *typedef.PartitionRangeConfig, + idxCount int, +) *typedef.Stmt { t.RLock() defer t.RUnlock() @@ -361,16 +366,12 @@ func genSingleIndexQuery(s *testschema.Schema, t *testschema.Table, g *Generator typs []typedef.Type ) - if len(t.Indexes) == 0 { - return nil - } - builder := qb.Select(s.Keyspace.Name + "." + t.Name) builder.AllowFiltering() - for _, idx := range indexes { - builder = builder.Where(qb.Eq(idx.Column)) - values = append(values, t.Columns[idx.ColumnIdx].Type.GenValue(r, p)...) - typs = append(typs, t.Columns[idx.ColumnIdx].Type) + for i := 0; i < idxCount; i++ { + builder = builder.Where(qb.Eq(t.Indexes[i].Column)) + values = append(values, t.Columns[t.Indexes[i].ColumnIdx].Type.GenValue(r, p)...) + typs = append(typs, t.Columns[t.Indexes[i].ColumnIdx].Type) } return &typedef.Stmt{ @@ -534,7 +535,7 @@ func GenDDLStmt(s *testschema.Schema, t *testschema.Table, r *rand.Rand, p *type return genDropColumnStmt(t, s.Keyspace.Name, colNum) default: column := testschema.ColumnDef{Name: GenColumnName("col", len(t.Columns)+1), Type: GenColumnType(len(t.Columns)+1, sc)} - return genAddColumnStmt(t, s.Keyspace.Name, sc, &column) + return genAddColumnStmt(t, s.Keyspace.Name, &column) } } @@ -542,7 +543,7 @@ func appendValue(columnType typedef.Type, r *rand.Rand, p *typedef.PartitionRang return append(values, columnType.GenValue(r, p)...) } -func genAddColumnStmt(t *testschema.Table, keyspace string, sc *typedef.SchemaConfig, column *testschema.ColumnDef) (*typedef.Stmts, error) { +func genAddColumnStmt(t *testschema.Table, keyspace string, column *testschema.ColumnDef) (*typedef.Stmts, error) { var stmts []*typedef.Stmt if c, ok := column.Type.(*coltypes.UDTType); ok { createType := "CREATE TYPE IF NOT EXISTS %s.%s (%s);" diff --git a/pkg/generators/suite_const_test.go b/pkg/generators/suite_const_test.go index 5eef2c45..a578985b 100644 --- a/pkg/generators/suite_const_test.go +++ b/pkg/generators/suite_const_test.go @@ -21,13 +21,7 @@ import ( . "github.com/scylladb/gemini/pkg/typedef" ) -const ( - testDirPath = "./test_expected_data/" -) - var ( - // TODO: complex types excepted from all cases until it testing - // TODO: TYPE_TIME excepted from pk keys cases until fix issue #321 partitionKeysCases = map[string][]Type{ "pk1": {TYPE_BIGINT}, "pk3": {TYPE_BIGINT, TYPE_FLOAT, TYPE_INET}, @@ -43,11 +37,10 @@ var ( "ck3": {TYPE_ASCII, TYPE_DATE, TYPE_DECIMAL}, "ckAll": { TYPE_ASCII, TYPE_BIGINT, TYPE_BLOB, TYPE_BOOLEAN, TYPE_DATE, TYPE_DECIMAL, TYPE_DOUBLE, TYPE_FLOAT, - TYPE_INET, TYPE_INT, TYPE_SMALLINT, TYPE_TEXT, TYPE_TIME, TYPE_TIMESTAMP, TYPE_TIMEUUID, TYPE_TINYINT, TYPE_UUID, TYPE_VARCHAR, TYPE_VARINT, TYPE_TIME, + TYPE_INET, TYPE_INT, TYPE_SMALLINT, TYPE_TEXT, TYPE_TIMESTAMP, TYPE_TIMEUUID, TYPE_TINYINT, TYPE_UUID, TYPE_VARCHAR, TYPE_VARINT, TYPE_TIME, }, } - // TODO: counterType excepted from columns cases until it testing columnsCases = map[string][]Type{ "col0": {}, "col1": {TYPE_DATE}, @@ -57,14 +50,23 @@ var ( "col3cr": {&counterType, &counterType, &counterType}, "colAll": { TYPE_DURATION, TYPE_ASCII, TYPE_BIGINT, TYPE_BLOB, TYPE_BOOLEAN, TYPE_DATE, TYPE_DECIMAL, TYPE_DOUBLE, TYPE_FLOAT, - TYPE_INET, TYPE_INT, TYPE_SMALLINT, TYPE_TEXT, TYPE_TIME, TYPE_TIMESTAMP, TYPE_TIMEUUID, TYPE_TINYINT, TYPE_UUID, TYPE_VARCHAR, TYPE_VARINT, TYPE_TIME, + TYPE_INET, TYPE_INT, TYPE_SMALLINT, TYPE_TEXT, TYPE_TIMESTAMP, TYPE_TIMEUUID, TYPE_TINYINT, TYPE_UUID, TYPE_VARCHAR, TYPE_VARINT, TYPE_TIME, }, } - optionsCases = map[string][]string{ - "MV": {"MV"}, - "lwt": {"lwt"}, - "lwt_MV": {"lwt", "MV"}, + optionsCases = map[string]bool{ + "mv": true, + "mvNp": true, + "cpk1": true, + "cpkAll": true, + "cck1": true, + "cckAll": true, + "lwt": true, + "idx1": true, + "idxAll": true, + "delFist": true, + "delLast": true, + "addSt": true, } counterType CounterType @@ -73,3 +75,185 @@ var ( updateExpected = flag.Bool("update-expected", false, "make test to update expected results") ) + +var ( + genInsertStmtCases = []string{ + "pk1_ck0_col0", + "pk1_ck1_col1", + "pk3_ck3_col5", + "pkAll_ckAll_colAll", + "pk1_ck1_col1cr", + "pk3_ck3_col3cr", + "pk1_ck0_col0_lwt", + "pk1_ck1_col1_lwt", + "pk1_ck1_col1cr_lwt", + "pkAll_ckAll_colAll_lwt", + } + genInsertJSONStmtCases = []string{ + "pk1_ck0_col0", + "pk1_ck1_col1", + "pk3_ck3_col5", + "pkAll_ckAll_colAll", + } + genUpdateStmtCases = []string{ + "pk1_ck0_col0", + "pk1_ck1_col1", + "pk3_ck3_col5", + "pkAll_ckAll_colAll", + "pk1_ck1_col1cr", + "pk3_ck3_col3cr", + } + + genDeleteStmtCases = []string{ + "pk1_ck0_col1", + "pk1_ck1_col1", + "pk3_ck3_col5", + "pkAll_ckAll_colAll", + "pk1_ck1_col1cr", + "pk3_ck3_col3cr", + } +) + +var ( + genSinglePartitionQueryCases = []string{ + "pk1_ck0_col0", + "pk1_ck1_col1", + "pk3_ck3_col5", + "pkAll_ckAll_colAll", + "pk1_ck1_col1cr", + "pk3_ck3_col3cr", + "pk1_ck0_col0_mv", + "pk1_ck1_col1_mv", + "pkAll_ckAll_colAll_mv", + "pk1_ck1_col1_mvNp", + "pkAll_ckAll_colAll_mvNp", + } + genMultiplePartitionQueryCases = []string{ + "pk1_ck0_col0_cpk1", + "pk1_ck1_col1_cpk1", + "pk3_ck3_col5_cpk1", + "pkAll_ckAll_colAll_cpk1", + "pk1_ck1_col1cr_cpkAll", + "pk3_ck3_col3cr_cpkAll", + "pk3_ck3_col5_cpkAll", + "pkAll_ckAll_colAll_cpkAll", + + "pk1_ck0_col0_cpk1.mv", + "pk1_ck1_col1_cpk1.mv", + "pk3_ck3_col5_cpk1.mv", + "pkAll_ckAll_colAll_cpk1.mv", + "pk1_ck1_col1cr_cpkAll.mv", + "pk3_ck3_col3cr_cpkAll.mv", + "pk3_ck3_col5_cpkAll.mv", + "pkAll_ckAll_colAll_cpkAll.mv", + + "pk1_ck0_col1_cpk1.mvNp", + "pk1_ck1_col1_cpk1.mvNp", + "pk3_ck3_col5_cpk1.mvNp", + "pkAll_ckAll_colAll_cpk1.mvNp", + "pk3_ck3_col5_cpkAll.mvNp", + "pkAll_ckAll_colAll_cpkAll.mvNp", + } + genClusteringRangeQueryCases = []string{ + "pk1_ck1_col1_cck1", + "pk3_ck3_col5_cck1", + "pkAll_ckAll_colAll_cck1", + "pk1_ck1_col1cr_cckAll", + "pk3_ck3_col3cr_cckAll", + "pk3_ck3_col5_cckAll", + "pkAll_ckAll_colAll_cckAll", + + "pk1_ck1_col1_cck1.mv", + "pk3_ck3_col5_cck1.mv", + "pkAll_ckAll_colAll_cck1.mv", + "pk1_ck1_col1cr_cckAll.mv", + "pk3_ck3_col3cr_cckAll.mv", + "pk3_ck3_col5_cckAll.mv", + "pkAll_ckAll_colAll_cckAll.mv", + + "pk1_ck1_col1_cck1.mvNp", + "pk3_ck3_col5_cck1.mvNp", + "pkAll_ckAll_colAll_cck1.mvNp", + "pk3_ck3_col5_cckAll.mvNp", + "pkAll_ckAll_colAll_cckAll.mvNp", + } + genMultiplePartitionClusteringRangeQueryCases = []string{ + "pk1_ck1_col1_cpk1.cck1", + "pk3_ck3_col5_cpk1.cck1", + "pkAll_ckAll_colAll_cpk1.cck1", + "pk1_ck1_col1cr_cpkAll.cck1", + "pk3_ck3_col3cr_cpkAll.cck1", + "pk3_ck3_col5_cpkAll.cck1", + "pkAll_ckAll_colAll_cpkAll.cck1", + + "pk1_ck1_col1_cpk1.cckAll", + "pk3_ck3_col5_cpk1.cckAll", + "pkAll_ckAll_colAll_cpk1.cckAll", + "pk1_ck1_col1cr_cpkAll.cckAll", + "pk3_ck3_col3cr_cpkAll.cckAll", + "pk3_ck3_col5_cpkAll.cckAll", + "pkAll_ckAll_colAll_cpkAll.cckAll", + + "pk1_ck1_col1_cpk1.cck1.mv", + "pk3_ck3_col5_cpk1.cck1.mv", + "pkAll_ckAll_colAll_cpk1.cck1.mv", + "pk1_ck1_col1cr_cpkAll.cck1.mv", + "pk3_ck3_col3cr_cpkAll.cck1.mv", + "pk3_ck3_col5_cpkAll.cck1.mv", + "pkAll_ckAll_colAll_cpkAll.cck1.mv", + + "pk1_ck1_col1_cpk1.cckAll.mv", + "pk3_ck3_col5_cpk1.cckAll.mv", + "pkAll_ckAll_colAll_cpk1.cckAll.mv", + "pk1_ck1_col1cr_cpkAll.cckAll.mv", + "pk3_ck3_col3cr_cpkAll.cckAll.mv", + "pk3_ck3_col5_cpkAll.cckAll.mv", + "pkAll_ckAll_colAll_cpkAll.cckAll.mv", + + "pk1_ck1_col1_cpk1.cck1.mvNp", + "pk3_ck3_col5_cpk1.cck1.mvNp", + "pkAll_ckAll_colAll_cpk1.cck1.mvNp", + "pk3_ck3_col5_cpkAll.cck1.mvNp", + "pkAll_ckAll_colAll_cpkAll.cck1.mvNp", + + "pk1_ck1_col1_cpk1.cckAll.mvNp", + "pk3_ck3_col5_cpk1.cckAll.mvNp", + "pkAll_ckAll_colAll_cpk1.cckAll.mvNp", + "pk3_ck3_col5_cpkAll.cckAll.mvNp", + "pkAll_ckAll_colAll_cpkAll.cckAll.mvNp", + } + + genSingleIndexQueryCases = []string{ + "pk1_ck0_col1_idx1", + "pk3_ck3_col5_idx1", + "pkAll_ckAll_colAll_idxAll", + } +) + +var ( + genDropColumnStmtCases = []string{ + "pk1_ck1_col1_delFist", + "pkAll_ckAll_colAll_delLast", + } + genAddColumnStmtCases = []string{ + "pk1_ck1_col1_addSt_0", + "pk1_ck1_col1_addSt_1", + "pk1_ck1_col1_addSt_2", + "pk1_ck1_col1_addSt_3", + "pk1_ck1_col1_addSt_4", + "pk1_ck1_col1_addSt_5", + "pk1_ck1_col1_addSt_6", + "pk1_ck1_col1_addSt_7", + "pk1_ck1_col1_addSt_8", + "pk1_ck1_col1_addSt_9", + "pk1_ck1_col1_addSt_10", + "pk1_ck1_col1_addSt_11", + "pk1_ck1_col1_addSt_12", + "pk1_ck1_col1_addSt_13", + "pk1_ck1_col1_addSt_14", + "pk1_ck1_col1_addSt_15", + "pk1_ck1_col1_addSt_16", + "pk1_ck1_col1_addSt_17", + "pk1_ck1_col1_addSt_18", + } +) diff --git a/pkg/generators/suite_utils_test.go b/pkg/generators/suite_utils_test.go index 5d647b73..3ad2ff59 100644 --- a/pkg/generators/suite_utils_test.go +++ b/pkg/generators/suite_utils_test.go @@ -19,6 +19,7 @@ import ( "fmt" "os" "path" + "strconv" "strings" "testing" "time" @@ -27,6 +28,7 @@ import ( "golang.org/x/exp/rand" "github.com/scylladb/gemini/pkg/builders" + "github.com/scylladb/gemini/pkg/coltypes" "github.com/scylladb/gemini/pkg/replication" "github.com/scylladb/gemini/pkg/routingkey" "github.com/scylladb/gemini/pkg/tableopts" @@ -51,10 +53,20 @@ type Result struct { QueryType string } +type funcOptions struct { + addType testschema.ColumnDef + idxCount int + mvNum int + useLWT bool + pkCount int + ckCount int + delNum int +} + type Results []*Result -func initExpected(t *testing.T, fileName string, cases []string, updateExpected bool) *expectedStore { - filePath := path.Join(testDirPath, fileName) +func initExpected(t *testing.T, dirPath, fileName string, cases []string, updateExpected bool) *expectedStore { + filePath := path.Join(dirPath, fileName) expected := make(ExpectedList) if updateExpected { expected.addCases(cases...) @@ -184,9 +196,15 @@ func convertStmtToResults(stmt *typedef.Stmt) *Result { types = fmt.Sprintf("%s %s", types, stmt.Types[idx].Name()) } query, names := stmt.Query.ToCql() + token := "" + tokenValues := "" + if (*stmt).ValuesWithToken != nil { + token = fmt.Sprintf("%v", (*stmt).ValuesWithToken.Token) + tokenValues = strings.TrimSpace(fmt.Sprintf("%v", (*stmt).ValuesWithToken.Value)) + } return &Result{ - Token: fmt.Sprintf("%v", (*stmt).ValuesWithToken.Token), - TokenValues: strings.TrimSpace(fmt.Sprintf("%v", (*stmt).ValuesWithToken.Value)), + Token: token, + TokenValues: tokenValues, Query: strings.TrimSpace(query), Names: strings.TrimSpace(fmt.Sprintf("%s", names)), Values: strings.TrimSpace(fmt.Sprintf("%v", stmt.Values)), @@ -250,10 +268,14 @@ type testInterface interface { Fatalf(format string, args ...any) } -func getAllForTestStmt(t testInterface, caseName string) (*testschema.Schema, *typedef.PartitionRangeConfig, *MockGenerator, *rand.Rand, bool, bool) { +func getAllForTestStmt(t testInterface, caseName string) (*testschema.Schema, *typedef.PartitionRangeConfig, *MockGenerator, *rand.Rand, funcOptions) { rnd := rand.New(nonRandSource(1)) - table, useLWT, useMV := getTableAndOptionsFromName(t, caseName) - + table, options, optionsNum := getTableAndOptionsFromName(t, caseName) + opts, mv, indexes := getFromOptions(t, table, options, optionsNum) + table.Indexes = indexes + if opts.mvNum >= 0 { + table.MaterializedViews = []testschema.MaterializedView{*mv} + } testSchema, testSchemaCfg, err := getTestSchema(table) if err != nil { t.Errorf("getTestSchema error:%v", err) @@ -269,7 +291,31 @@ func getAllForTestStmt(t testInterface, caseName string) (*testschema.Schema, *t testGenerator := NewTestGenerator(testSchema.Tables[0], rnd, testPRC, &routingkey.RoutingKeyCreator{}) - return testSchema, testPRC, testGenerator, rnd, useLWT, useMV + return testSchema, testPRC, testGenerator, rnd, opts +} + +func createMv(t testInterface, table *testschema.Table, haveNonPrimaryKey bool) *testschema.MaterializedView { + switch haveNonPrimaryKey { + case true: + var cols testschema.Columns + col := table.Columns.ValidColumnsForPrimaryKey() + if len(col) == 0 { + t.Fatalf("no valid columns for mv primary key") + } + cols = append(cols, col[0]) + return &testschema.MaterializedView{ + Name: fmt.Sprintf("%s_mv_1", table.Name), + PartitionKeys: append(cols, table.PartitionKeys...), + ClusteringKeys: table.ClusteringKeys, + NonPrimaryKey: *col[0], + } + default: + return &testschema.MaterializedView{ + Name: fmt.Sprintf("%s_mv_1", table.Name), + PartitionKeys: table.PartitionKeys, + ClusteringKeys: table.ClusteringKeys, + } + } } func getTestSchema(table *testschema.Table) (*testschema.Schema, *typedef.SchemaConfig, error) { @@ -330,10 +376,9 @@ func genTestSchema(sc typedef.SchemaConfig, table *testschema.Table) *testschema return builder.Build() } -func getTableAndOptionsFromName(t testInterface, tableName string) (*testschema.Table, bool, bool) { +func getTableAndOptionsFromName(t testInterface, tableName string) (table *testschema.Table, options, optionsNum string) { nameParts := strings.Split(tableName, "_") - var table testschema.Table - var useLWT, useMV bool + table = &testschema.Table{} for idx := range nameParts { switch idx { case 0: @@ -343,23 +388,105 @@ func getTableAndOptionsFromName(t testInterface, tableName string) (*testschema. case 2: table.Columns = genColumnsFromCase(t, columnsCases, nameParts[2], "col") case 3: - opt, haveOpt := optionsCases[nameParts[3]] - if !haveOpt { - t.Fatalf("Error in getTableAndOptionsFromName OptCaseName:%s, not found", nameParts[3]) + options = nameParts[3] + case 4: + optionsNum = nameParts[4] + } + } + table.Name = tableName + + return table, options, optionsNum +} + +func getFromOptions(t testInterface, table *testschema.Table, option, optionsNum string) (funcOptions, *testschema.MaterializedView, []typedef.IndexDef) { + funcOpts := funcOptions{ + mvNum: -1, + } + var mv *testschema.MaterializedView + var indexes []typedef.IndexDef + if option == "" { + return funcOpts, nil, nil + } + options := strings.Split(option, ".") + for i := range options { + _, haveOpt := optionsCases[options[i]] + if !haveOpt { + t.Fatalf("Error in getTableAndOptionsFromName OptCaseName:%s, not found", options[i]) + } + switch options[i] { + case "lwt": + funcOpts.useLWT = true + case "mv": + funcOpts.mvNum = 0 + mv = createMv(t, table, false) + case "mvNp": + funcOpts.mvNum = 0 + mv = createMv(t, table, true) + case "cpk1": + funcOpts.pkCount = 1 + case "cpkAll": + funcOpts.pkCount = len(table.PartitionKeys) + if funcOpts.pkCount == 0 { + t.Fatalf("wrong pk case definition") + } + case "cck1": + funcOpts.ckCount = 0 + case "cckAll": + funcOpts.ckCount = len(table.ClusteringKeys) - 1 + if funcOpts.ckCount < 0 { + t.Fatalf("wrong ck case definition") } - for i := range opt { - switch opt[i] { - case "lwt": - useLWT = true - case "mv": - useMV = true - } + case "idx1": + indexes = createIdxFromColumns(t, table, false) + funcOpts.idxCount = 1 + case "idxAll": + indexes = createIdxFromColumns(t, table, true) + funcOpts.idxCount = len(indexes) + case "delFist": + funcOpts.delNum = 0 + case "delLast": + funcOpts.delNum = len(table.Columns) - 1 + case "addSt": + funcOpts.addType = testschema.ColumnDef{ + Type: createColumnSimpleType(t, optionsNum), + Name: GenColumnName("col", len(table.Columns)+1), } } + } - table.Name = tableName + return funcOpts, mv, indexes +} + +func createColumnSimpleType(t testInterface, typeNum string) coltypes.SimpleType { + num, err := strconv.ParseInt(typeNum, 0, 8) + if err != nil { + t.Fatalf("wrong options case for add column definition") + } + return coltypes.AllTypes[int(num)] +} - return &table, useLWT, useMV +func createIdxFromColumns(t testInterface, table *testschema.Table, all bool) (indexes []typedef.IndexDef) { + if len(table.Columns) < 1 { + t.Fatalf("wrong idxCount case definition") + } + switch all { + case true: + for i := range table.Columns { + var index typedef.IndexDef + index.Name = table.Columns[i].Name + "_idx" + index.Column = table.Columns[i].Name + index.ColumnIdx = i + indexes = append(indexes, index) + } + default: + var index typedef.IndexDef + index.Name = table.Columns[0].Name + "_idx" + index.Column = table.Columns[0].Name + index.ColumnIdx = 0 + indexes = append(indexes, index) + + } + return indexes } func genColumnsFromCase(t testInterface, typeCases map[string][]typedef.Type, caseName, prefix string) testschema.Columns { diff --git a/pkg/generators/test_expected_data/check/clustering_range.json b/pkg/generators/test_expected_data/check/clustering_range.json index c4f8cd70..648d7b25 100644 --- a/pkg/generators/test_expected_data/check/clustering_range.json +++ b/pkg/generators/test_expected_data/check/clustering_range.json @@ -179,10 +179,10 @@ { "Token": "", "TokenValues": "", - "Query": "SELECT * FROM ks1.pkAll_ckAll_colAll_cckAll WHERE pk0=? AND pk1=? AND pk2=? AND pk3=? AND pk4=? AND pk5=? AND pk6=? AND pk7=? AND pk8=? AND pk9=? AND pk10=? AND pk11=? AND pk12=? AND pk13=? AND pk14=? AND pk15=? AND pk16=? AND pk17=? AND pk18=? AND ck0=? AND ck1=? AND ck2=? AND ck3=? AND ck4=? AND ck5=? AND ck6=? AND ck7=? AND ck8=? AND ck9=? AND ck10=? AND ck11=? AND ck12=? AND ck13=? AND ck14=? AND ck15=? AND ck16=? AND ck17=? AND ck18=? AND ck19\u003e? AND ck19\u003c?", - "Names": "[pk0 pk1 pk2 pk3 pk4 pk5 pk6 pk7 pk8 pk9 pk10 pk11 pk12 pk13 pk14 pk15 pk16 pk17 pk18 ck0 ck1 ck2 ck3 ck4 ck5 ck6 ck7 ck8 ck9 ck10 ck11 ck12 ck13 ck14 ck15 ck16 ck17 ck18 ck19 ck19]", - "Values": "[01 1 3030 false 1969-12-31 0.001 1.1102230246251565e-16 1.110223e-16 1.1.1.1 0 0 00 1969-12-31 00:00:01 +0000 UTC 00000001-0000-1000-8000-3132372e302e 0 00000001-0000-1000-8000-3132372e302e 00 1 -86399000000000 01 1 3030 false 1969-12-31 0.001 1.1102230246251565e-16 1.110223e-16 1.1.1.1 0 0 00 -86399000000000 1969-12-31 00:00:01 +0000 UTC 00000001-0000-1000-8000-3132372e302e 0 00000001-0000-1000-8000-3132372e302e 00 1 -86399000000000 -86399000000000]", - "Types": " ascii bigint blob boolean date decimal double float inet int smallint text timestamp timeuuid tinyint uuid varchar varint time ascii bigint blob boolean date decimal double float inet int smallint text time timestamp timeuuid tinyint uuid varchar varint time time", + "Query": "SELECT * FROM ks1.pkAll_ckAll_colAll_cckAll WHERE pk0=? AND pk1=? AND pk2=? AND pk3=? AND pk4=? AND pk5=? AND pk6=? AND pk7=? AND pk8=? AND pk9=? AND pk10=? AND pk11=? AND pk12=? AND pk13=? AND pk14=? AND pk15=? AND pk16=? AND pk17=? AND pk18=? AND ck0=? AND ck1=? AND ck2=? AND ck3=? AND ck4=? AND ck5=? AND ck6=? AND ck7=? AND ck8=? AND ck9=? AND ck10=? AND ck11=? AND ck12=? AND ck13=? AND ck14=? AND ck15=? AND ck16=? AND ck17=? AND ck18\u003e? AND ck18\u003c?", + "Names": "[pk0 pk1 pk2 pk3 pk4 pk5 pk6 pk7 pk8 pk9 pk10 pk11 pk12 pk13 pk14 pk15 pk16 pk17 pk18 ck0 ck1 ck2 ck3 ck4 ck5 ck6 ck7 ck8 ck9 ck10 ck11 ck12 ck13 ck14 ck15 ck16 ck17 ck18 ck18]", + "Values": "[01 1 3030 false 1969-12-31 0.001 1.1102230246251565e-16 1.110223e-16 1.1.1.1 0 0 00 1969-12-31 00:00:01 +0000 UTC 00000001-0000-1000-8000-3132372e302e 0 00000001-0000-1000-8000-3132372e302e 00 1 -86399000000000 01 1 3030 false 1969-12-31 0.001 1.1102230246251565e-16 1.110223e-16 1.1.1.1 0 0 00 1969-12-31 00:00:01 +0000 UTC 00000001-0000-1000-8000-3132372e302e 0 00000001-0000-1000-8000-3132372e302e 00 1 -86399000000000 -86399000000000]", + "Types": " ascii bigint blob boolean date decimal double float inet int smallint text timestamp timeuuid tinyint uuid varchar varint time ascii bigint blob boolean date decimal double float inet int smallint text timestamp timeuuid tinyint uuid varchar varint time time", "QueryType": "1" } ], @@ -190,10 +190,10 @@ { "Token": "", "TokenValues": "", - "Query": "SELECT * FROM ks1.pkAll_ckAll_colAll_cckAll.mv_mv_1 WHERE pk0=? AND pk1=? AND pk2=? AND pk3=? AND pk4=? AND pk5=? AND pk6=? AND pk7=? AND pk8=? AND pk9=? AND pk10=? AND pk11=? AND pk12=? AND pk13=? AND pk14=? AND pk15=? AND pk16=? AND pk17=? AND pk18=? AND ck0=? AND ck1=? AND ck2=? AND ck3=? AND ck4=? AND ck5=? AND ck6=? AND ck7=? AND ck8=? AND ck9=? AND ck10=? AND ck11=? AND ck12=? AND ck13=? AND ck14=? AND ck15=? AND ck16=? AND ck17=? AND ck18=? AND ck19\u003e? AND ck19\u003c?", - "Names": "[pk0 pk1 pk2 pk3 pk4 pk5 pk6 pk7 pk8 pk9 pk10 pk11 pk12 pk13 pk14 pk15 pk16 pk17 pk18 ck0 ck1 ck2 ck3 ck4 ck5 ck6 ck7 ck8 ck9 ck10 ck11 ck12 ck13 ck14 ck15 ck16 ck17 ck18 ck19 ck19]", - "Values": "[01 1 3030 false 1969-12-31 0.001 1.1102230246251565e-16 1.110223e-16 1.1.1.1 0 0 00 1969-12-31 00:00:01 +0000 UTC 00000001-0000-1000-8000-3132372e302e 0 00000001-0000-1000-8000-3132372e302e 00 1 -86399000000000 01 1 3030 false 1969-12-31 0.001 1.1102230246251565e-16 1.110223e-16 1.1.1.1 0 0 00 -86399000000000 1969-12-31 00:00:01 +0000 UTC 00000001-0000-1000-8000-3132372e302e 0 00000001-0000-1000-8000-3132372e302e 00 1 -86399000000000 -86399000000000]", - "Types": " ascii bigint blob boolean date decimal double float inet int smallint text timestamp timeuuid tinyint uuid varchar varint time ascii bigint blob boolean date decimal double float inet int smallint text time timestamp timeuuid tinyint uuid varchar varint time time", + "Query": "SELECT * FROM ks1.pkAll_ckAll_colAll_cckAll.mv_mv_1 WHERE pk0=? AND pk1=? AND pk2=? AND pk3=? AND pk4=? AND pk5=? AND pk6=? AND pk7=? AND pk8=? AND pk9=? AND pk10=? AND pk11=? AND pk12=? AND pk13=? AND pk14=? AND pk15=? AND pk16=? AND pk17=? AND pk18=? AND ck0=? AND ck1=? AND ck2=? AND ck3=? AND ck4=? AND ck5=? AND ck6=? AND ck7=? AND ck8=? AND ck9=? AND ck10=? AND ck11=? AND ck12=? AND ck13=? AND ck14=? AND ck15=? AND ck16=? AND ck17=? AND ck18\u003e? AND ck18\u003c?", + "Names": "[pk0 pk1 pk2 pk3 pk4 pk5 pk6 pk7 pk8 pk9 pk10 pk11 pk12 pk13 pk14 pk15 pk16 pk17 pk18 ck0 ck1 ck2 ck3 ck4 ck5 ck6 ck7 ck8 ck9 ck10 ck11 ck12 ck13 ck14 ck15 ck16 ck17 ck18 ck18]", + "Values": "[01 1 3030 false 1969-12-31 0.001 1.1102230246251565e-16 1.110223e-16 1.1.1.1 0 0 00 1969-12-31 00:00:01 +0000 UTC 00000001-0000-1000-8000-3132372e302e 0 00000001-0000-1000-8000-3132372e302e 00 1 -86399000000000 01 1 3030 false 1969-12-31 0.001 1.1102230246251565e-16 1.110223e-16 1.1.1.1 0 0 00 1969-12-31 00:00:01 +0000 UTC 00000001-0000-1000-8000-3132372e302e 0 00000001-0000-1000-8000-3132372e302e 00 1 -86399000000000 -86399000000000]", + "Types": " ascii bigint blob boolean date decimal double float inet int smallint text timestamp timeuuid tinyint uuid varchar varint time ascii bigint blob boolean date decimal double float inet int smallint text timestamp timeuuid tinyint uuid varchar varint time time", "QueryType": "1" } ], @@ -201,10 +201,10 @@ { "Token": "", "TokenValues": "", - "Query": "SELECT * FROM ks1.pkAll_ckAll_colAll_cckAll.mvNp_mv_1 WHERE col1=? AND pk0=? AND pk1=? AND pk2=? AND pk3=? AND pk4=? AND pk5=? AND pk6=? AND pk7=? AND pk8=? AND pk9=? AND pk10=? AND pk11=? AND pk12=? AND pk13=? AND pk14=? AND pk15=? AND pk16=? AND pk17=? AND pk18=? AND ck0=? AND ck1=? AND ck2=? AND ck3=? AND ck4=? AND ck5=? AND ck6=? AND ck7=? AND ck8=? AND ck9=? AND ck10=? AND ck11=? AND ck12=? AND ck13=? AND ck14=? AND ck15=? AND ck16=? AND ck17=? AND ck18=? AND ck19\u003e? AND ck19\u003c?", - "Names": "[col1 pk0 pk1 pk2 pk3 pk4 pk5 pk6 pk7 pk8 pk9 pk10 pk11 pk12 pk13 pk14 pk15 pk16 pk17 pk18 ck0 ck1 ck2 ck3 ck4 ck5 ck6 ck7 ck8 ck9 ck10 ck11 ck12 ck13 ck14 ck15 ck16 ck17 ck18 ck19 ck19]", - "Values": "[01 01 1 3030 false 1969-12-31 0.001 1.1102230246251565e-16 1.110223e-16 1.1.1.1 0 0 00 1969-12-31 00:00:01 +0000 UTC 00000001-0000-1000-8000-3132372e302e 0 00000001-0000-1000-8000-3132372e302e 00 1 -86399000000000 00 1 3030 false 1969-12-31 0.001 1.1102230246251565e-16 1.110223e-16 1.1.1.1 0 0 00 -86399000000000 1969-12-31 00:00:01 +0000 UTC 00000001-0000-1000-8000-3132372e302e 0 00000001-0000-1000-8000-3132372e302e 01 1 -86399000000000 -86399000000000]", - "Types": " ascii ascii bigint blob boolean date decimal double float inet int smallint text timestamp timeuuid tinyint uuid varchar varint time ascii bigint blob boolean date decimal double float inet int smallint text time timestamp timeuuid tinyint uuid varchar varint time time", + "Query": "SELECT * FROM ks1.pkAll_ckAll_colAll_cckAll.mvNp_mv_1 WHERE col1=? AND pk0=? AND pk1=? AND pk2=? AND pk3=? AND pk4=? AND pk5=? AND pk6=? AND pk7=? AND pk8=? AND pk9=? AND pk10=? AND pk11=? AND pk12=? AND pk13=? AND pk14=? AND pk15=? AND pk16=? AND pk17=? AND pk18=? AND ck0=? AND ck1=? AND ck2=? AND ck3=? AND ck4=? AND ck5=? AND ck6=? AND ck7=? AND ck8=? AND ck9=? AND ck10=? AND ck11=? AND ck12=? AND ck13=? AND ck14=? AND ck15=? AND ck16=? AND ck17=? AND ck18\u003e? AND ck18\u003c?", + "Names": "[col1 pk0 pk1 pk2 pk3 pk4 pk5 pk6 pk7 pk8 pk9 pk10 pk11 pk12 pk13 pk14 pk15 pk16 pk17 pk18 ck0 ck1 ck2 ck3 ck4 ck5 ck6 ck7 ck8 ck9 ck10 ck11 ck12 ck13 ck14 ck15 ck16 ck17 ck18 ck18]", + "Values": "[01 01 1 3030 false 1969-12-31 0.001 1.1102230246251565e-16 1.110223e-16 1.1.1.1 0 0 00 1969-12-31 00:00:01 +0000 UTC 00000001-0000-1000-8000-3132372e302e 0 00000001-0000-1000-8000-3132372e302e 00 1 -86399000000000 00 1 3030 false 1969-12-31 0.001 1.1102230246251565e-16 1.110223e-16 1.1.1.1 0 0 00 1969-12-31 00:00:01 +0000 UTC 00000001-0000-1000-8000-3132372e302e 0 00000001-0000-1000-8000-3132372e302e 01 1 -86399000000000 -86399000000000]", + "Types": " ascii ascii bigint blob boolean date decimal double float inet int smallint text timestamp timeuuid tinyint uuid varchar varint time ascii bigint blob boolean date decimal double float inet int smallint text timestamp timeuuid tinyint uuid varchar varint time time", "QueryType": "1" } ] diff --git a/pkg/generators/test_expected_data/check/multiple_partition_clustering_range.json b/pkg/generators/test_expected_data/check/multiple_partition_clustering_range.json index cd5896ac..e3890de6 100644 --- a/pkg/generators/test_expected_data/check/multiple_partition_clustering_range.json +++ b/pkg/generators/test_expected_data/check/multiple_partition_clustering_range.json @@ -322,10 +322,10 @@ { "Token": "", "TokenValues": "", - "Query": "SELECT * FROM ks1.pkAll_ckAll_colAll_cpk1.cckAll WHERE pk0 IN (?) AND pk1 IN (?) AND pk2 IN (?) AND pk3 IN (?) AND pk4 IN (?) AND pk5 IN (?) AND pk6 IN (?) AND pk7 IN (?) AND pk8 IN (?) AND pk9 IN (?) AND pk10 IN (?) AND pk11 IN (?) AND pk12 IN (?) AND pk13 IN (?) AND pk14 IN (?) AND pk15 IN (?) AND pk16 IN (?) AND pk17 IN (?) AND pk18 IN (?) AND ck0=? AND ck1=? AND ck2=? AND ck3=? AND ck4=? AND ck5=? AND ck6=? AND ck7=? AND ck8=? AND ck9=? AND ck10=? AND ck11=? AND ck12=? AND ck13=? AND ck14=? AND ck15=? AND ck16=? AND ck17=? AND ck18=? AND ck19\u003e? AND ck19\u003c?", - "Names": "[pk0[0] pk1[0] pk2[0] pk3[0] pk4[0] pk5[0] pk6[0] pk7[0] pk8[0] pk9[0] pk10[0] pk11[0] pk12[0] pk13[0] pk14[0] pk15[0] pk16[0] pk17[0] pk18[0] ck0 ck1 ck2 ck3 ck4 ck5 ck6 ck7 ck8 ck9 ck10 ck11 ck12 ck13 ck14 ck15 ck16 ck17 ck18 ck19 ck19]", - "Values": "[01 1 3030 false 1969-12-31 0.001 1.1102230246251565e-16 1.110223e-16 1.1.1.1 0 0 00 1969-12-31 00:00:01 +0000 UTC 00000001-0000-1000-8000-3132372e302e 0 00000001-0000-1000-8000-3132372e302e 00 1 -86399000000000 01 1 3030 false 1969-12-31 0.001 1.1102230246251565e-16 1.110223e-16 1.1.1.1 0 0 00 -86399000000000 1969-12-31 00:00:01 +0000 UTC 00000001-0000-1000-8000-3132372e302e 0 00000001-0000-1000-8000-3132372e302e 00 1 -86399000000000 -86399000000000]", - "Types": " ascii bigint blob boolean date decimal double float inet int smallint text timestamp timeuuid tinyint uuid varchar varint time ascii bigint blob boolean date decimal double float inet int smallint text time timestamp timeuuid tinyint uuid varchar varint time time", + "Query": "SELECT * FROM ks1.pkAll_ckAll_colAll_cpk1.cckAll WHERE pk0 IN (?) AND pk1 IN (?) AND pk2 IN (?) AND pk3 IN (?) AND pk4 IN (?) AND pk5 IN (?) AND pk6 IN (?) AND pk7 IN (?) AND pk8 IN (?) AND pk9 IN (?) AND pk10 IN (?) AND pk11 IN (?) AND pk12 IN (?) AND pk13 IN (?) AND pk14 IN (?) AND pk15 IN (?) AND pk16 IN (?) AND pk17 IN (?) AND pk18 IN (?) AND ck0=? AND ck1=? AND ck2=? AND ck3=? AND ck4=? AND ck5=? AND ck6=? AND ck7=? AND ck8=? AND ck9=? AND ck10=? AND ck11=? AND ck12=? AND ck13=? AND ck14=? AND ck15=? AND ck16=? AND ck17=? AND ck18\u003e? AND ck18\u003c?", + "Names": "[pk0[0] pk1[0] pk2[0] pk3[0] pk4[0] pk5[0] pk6[0] pk7[0] pk8[0] pk9[0] pk10[0] pk11[0] pk12[0] pk13[0] pk14[0] pk15[0] pk16[0] pk17[0] pk18[0] ck0 ck1 ck2 ck3 ck4 ck5 ck6 ck7 ck8 ck9 ck10 ck11 ck12 ck13 ck14 ck15 ck16 ck17 ck18 ck18]", + "Values": "[01 1 3030 false 1969-12-31 0.001 1.1102230246251565e-16 1.110223e-16 1.1.1.1 0 0 00 1969-12-31 00:00:01 +0000 UTC 00000001-0000-1000-8000-3132372e302e 0 00000001-0000-1000-8000-3132372e302e 00 1 -86399000000000 01 1 3030 false 1969-12-31 0.001 1.1102230246251565e-16 1.110223e-16 1.1.1.1 0 0 00 1969-12-31 00:00:01 +0000 UTC 00000001-0000-1000-8000-3132372e302e 0 00000001-0000-1000-8000-3132372e302e 00 1 -86399000000000 -86399000000000]", + "Types": " ascii bigint blob boolean date decimal double float inet int smallint text timestamp timeuuid tinyint uuid varchar varint time ascii bigint blob boolean date decimal double float inet int smallint text timestamp timeuuid tinyint uuid varchar varint time time", "QueryType": "1" } ], @@ -333,10 +333,10 @@ { "Token": "", "TokenValues": "", - "Query": "SELECT * FROM ks1.pkAll_ckAll_colAll_cpk1.cckAll.mv_mv_1 WHERE pk0 IN (?) AND pk1 IN (?) AND pk2 IN (?) AND pk3 IN (?) AND pk4 IN (?) AND pk5 IN (?) AND pk6 IN (?) AND pk7 IN (?) AND pk8 IN (?) AND pk9 IN (?) AND pk10 IN (?) AND pk11 IN (?) AND pk12 IN (?) AND pk13 IN (?) AND pk14 IN (?) AND pk15 IN (?) AND pk16 IN (?) AND pk17 IN (?) AND pk18 IN (?) AND ck0=? AND ck1=? AND ck2=? AND ck3=? AND ck4=? AND ck5=? AND ck6=? AND ck7=? AND ck8=? AND ck9=? AND ck10=? AND ck11=? AND ck12=? AND ck13=? AND ck14=? AND ck15=? AND ck16=? AND ck17=? AND ck18=? AND ck19\u003e? AND ck19\u003c?", - "Names": "[pk0[0] pk1[0] pk2[0] pk3[0] pk4[0] pk5[0] pk6[0] pk7[0] pk8[0] pk9[0] pk10[0] pk11[0] pk12[0] pk13[0] pk14[0] pk15[0] pk16[0] pk17[0] pk18[0] ck0 ck1 ck2 ck3 ck4 ck5 ck6 ck7 ck8 ck9 ck10 ck11 ck12 ck13 ck14 ck15 ck16 ck17 ck18 ck19 ck19]", - "Values": "[01 1 3030 false 1969-12-31 0.001 1.1102230246251565e-16 1.110223e-16 1.1.1.1 0 0 00 1969-12-31 00:00:01 +0000 UTC 00000001-0000-1000-8000-3132372e302e 0 00000001-0000-1000-8000-3132372e302e 00 1 -86399000000000 01 1 3030 false 1969-12-31 0.001 1.1102230246251565e-16 1.110223e-16 1.1.1.1 0 0 00 -86399000000000 1969-12-31 00:00:01 +0000 UTC 00000001-0000-1000-8000-3132372e302e 0 00000001-0000-1000-8000-3132372e302e 00 1 -86399000000000 -86399000000000]", - "Types": " ascii bigint blob boolean date decimal double float inet int smallint text timestamp timeuuid tinyint uuid varchar varint time ascii bigint blob boolean date decimal double float inet int smallint text time timestamp timeuuid tinyint uuid varchar varint time time", + "Query": "SELECT * FROM ks1.pkAll_ckAll_colAll_cpk1.cckAll.mv_mv_1 WHERE pk0 IN (?) AND pk1 IN (?) AND pk2 IN (?) AND pk3 IN (?) AND pk4 IN (?) AND pk5 IN (?) AND pk6 IN (?) AND pk7 IN (?) AND pk8 IN (?) AND pk9 IN (?) AND pk10 IN (?) AND pk11 IN (?) AND pk12 IN (?) AND pk13 IN (?) AND pk14 IN (?) AND pk15 IN (?) AND pk16 IN (?) AND pk17 IN (?) AND pk18 IN (?) AND ck0=? AND ck1=? AND ck2=? AND ck3=? AND ck4=? AND ck5=? AND ck6=? AND ck7=? AND ck8=? AND ck9=? AND ck10=? AND ck11=? AND ck12=? AND ck13=? AND ck14=? AND ck15=? AND ck16=? AND ck17=? AND ck18\u003e? AND ck18\u003c?", + "Names": "[pk0[0] pk1[0] pk2[0] pk3[0] pk4[0] pk5[0] pk6[0] pk7[0] pk8[0] pk9[0] pk10[0] pk11[0] pk12[0] pk13[0] pk14[0] pk15[0] pk16[0] pk17[0] pk18[0] ck0 ck1 ck2 ck3 ck4 ck5 ck6 ck7 ck8 ck9 ck10 ck11 ck12 ck13 ck14 ck15 ck16 ck17 ck18 ck18]", + "Values": "[01 1 3030 false 1969-12-31 0.001 1.1102230246251565e-16 1.110223e-16 1.1.1.1 0 0 00 1969-12-31 00:00:01 +0000 UTC 00000001-0000-1000-8000-3132372e302e 0 00000001-0000-1000-8000-3132372e302e 00 1 -86399000000000 01 1 3030 false 1969-12-31 0.001 1.1102230246251565e-16 1.110223e-16 1.1.1.1 0 0 00 1969-12-31 00:00:01 +0000 UTC 00000001-0000-1000-8000-3132372e302e 0 00000001-0000-1000-8000-3132372e302e 00 1 -86399000000000 -86399000000000]", + "Types": " ascii bigint blob boolean date decimal double float inet int smallint text timestamp timeuuid tinyint uuid varchar varint time ascii bigint blob boolean date decimal double float inet int smallint text timestamp timeuuid tinyint uuid varchar varint time time", "QueryType": "1" } ], @@ -344,10 +344,10 @@ { "Token": "", "TokenValues": "", - "Query": "SELECT * FROM ks1.pkAll_ckAll_colAll_cpk1.cckAll.mvNp_mv_1 WHERE col1 IN (?) AND pk0 IN (?) AND pk1 IN (?) AND pk2 IN (?) AND pk3 IN (?) AND pk4 IN (?) AND pk5 IN (?) AND pk6 IN (?) AND pk7 IN (?) AND pk8 IN (?) AND pk9 IN (?) AND pk10 IN (?) AND pk11 IN (?) AND pk12 IN (?) AND pk13 IN (?) AND pk14 IN (?) AND pk15 IN (?) AND pk16 IN (?) AND pk17 IN (?) AND pk18 IN (?) AND ck0=? AND ck1=? AND ck2=? AND ck3=? AND ck4=? AND ck5=? AND ck6=? AND ck7=? AND ck8=? AND ck9=? AND ck10=? AND ck11=? AND ck12=? AND ck13=? AND ck14=? AND ck15=? AND ck16=? AND ck17=? AND ck18=? AND ck19\u003e? AND ck19\u003c?", - "Names": "[col1[0] pk0[0] pk1[0] pk2[0] pk3[0] pk4[0] pk5[0] pk6[0] pk7[0] pk8[0] pk9[0] pk10[0] pk11[0] pk12[0] pk13[0] pk14[0] pk15[0] pk16[0] pk17[0] pk18[0] ck0 ck1 ck2 ck3 ck4 ck5 ck6 ck7 ck8 ck9 ck10 ck11 ck12 ck13 ck14 ck15 ck16 ck17 ck18 ck19 ck19]", - "Values": "[01 00 1 3030 false 1969-12-31 0.001 1.1102230246251565e-16 1.110223e-16 1.1.1.1 0 0 00 1969-12-31 00:00:01 +0000 UTC 00000001-0000-1000-8000-3132372e302e 0 00000001-0000-1000-8000-3132372e302e 01 1 -86399000000000 00 1 3030 false 1969-12-31 0.001 1.1102230246251565e-16 1.110223e-16 1.1.1.1 0 0 00 -86399000000000 1969-12-31 00:00:01 +0000 UTC 00000001-0000-1000-8000-3132372e302e 0 00000001-0000-1000-8000-3132372e302e 01 1 -86399000000000 -86399000000000]", - "Types": " ascii ascii bigint blob boolean date decimal double float inet int smallint text timestamp timeuuid tinyint uuid varchar varint time ascii bigint blob boolean date decimal double float inet int smallint text time timestamp timeuuid tinyint uuid varchar varint time time", + "Query": "SELECT * FROM ks1.pkAll_ckAll_colAll_cpk1.cckAll.mvNp_mv_1 WHERE col1 IN (?) AND pk0 IN (?) AND pk1 IN (?) AND pk2 IN (?) AND pk3 IN (?) AND pk4 IN (?) AND pk5 IN (?) AND pk6 IN (?) AND pk7 IN (?) AND pk8 IN (?) AND pk9 IN (?) AND pk10 IN (?) AND pk11 IN (?) AND pk12 IN (?) AND pk13 IN (?) AND pk14 IN (?) AND pk15 IN (?) AND pk16 IN (?) AND pk17 IN (?) AND pk18 IN (?) AND ck0=? AND ck1=? AND ck2=? AND ck3=? AND ck4=? AND ck5=? AND ck6=? AND ck7=? AND ck8=? AND ck9=? AND ck10=? AND ck11=? AND ck12=? AND ck13=? AND ck14=? AND ck15=? AND ck16=? AND ck17=? AND ck18\u003e? AND ck18\u003c?", + "Names": "[col1[0] pk0[0] pk1[0] pk2[0] pk3[0] pk4[0] pk5[0] pk6[0] pk7[0] pk8[0] pk9[0] pk10[0] pk11[0] pk12[0] pk13[0] pk14[0] pk15[0] pk16[0] pk17[0] pk18[0] ck0 ck1 ck2 ck3 ck4 ck5 ck6 ck7 ck8 ck9 ck10 ck11 ck12 ck13 ck14 ck15 ck16 ck17 ck18 ck18]", + "Values": "[01 00 1 3030 false 1969-12-31 0.001 1.1102230246251565e-16 1.110223e-16 1.1.1.1 0 0 00 1969-12-31 00:00:01 +0000 UTC 00000001-0000-1000-8000-3132372e302e 0 00000001-0000-1000-8000-3132372e302e 01 1 -86399000000000 00 1 3030 false 1969-12-31 0.001 1.1102230246251565e-16 1.110223e-16 1.1.1.1 0 0 00 1969-12-31 00:00:01 +0000 UTC 00000001-0000-1000-8000-3132372e302e 0 00000001-0000-1000-8000-3132372e302e 01 1 -86399000000000 -86399000000000]", + "Types": " ascii ascii bigint blob boolean date decimal double float inet int smallint text timestamp timeuuid tinyint uuid varchar varint time ascii bigint blob boolean date decimal double float inet int smallint text timestamp timeuuid tinyint uuid varchar varint time time", "QueryType": "1" } ], @@ -388,10 +388,10 @@ { "Token": "", "TokenValues": "", - "Query": "SELECT * FROM ks1.pkAll_ckAll_colAll_cpkAll.cckAll WHERE pk0 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk1 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk2 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk3 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk4 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk5 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk6 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk7 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk8 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk9 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk10 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk11 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk12 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk13 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk14 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk15 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk16 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk17 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk18 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND ck0=? AND ck1=? AND ck2=? AND ck3=? AND ck4=? AND ck5=? AND ck6=? AND ck7=? AND ck8=? AND ck9=? AND ck10=? AND ck11=? AND ck12=? AND ck13=? AND ck14=? AND ck15=? AND ck16=? AND ck17=? AND ck18=? AND ck19\u003e? AND ck19\u003c?", - "Names": "[pk0[0] pk0[1] pk0[2] pk0[3] pk0[4] pk0[5] pk0[6] pk0[7] pk0[8] pk0[9] pk0[10] pk0[11] pk0[12] pk0[13] pk0[14] pk0[15] pk0[16] pk0[17] pk0[18] pk1[0] pk1[1] pk1[2] pk1[3] pk1[4] pk1[5] pk1[6] pk1[7] pk1[8] pk1[9] pk1[10] pk1[11] pk1[12] pk1[13] pk1[14] pk1[15] pk1[16] pk1[17] pk1[18] pk2[0] pk2[1] pk2[2] pk2[3] pk2[4] pk2[5] pk2[6] pk2[7] pk2[8] pk2[9] pk2[10] pk2[11] pk2[12] pk2[13] pk2[14] pk2[15] pk2[16] pk2[17] pk2[18] pk3[0] pk3[1] pk3[2] pk3[3] pk3[4] pk3[5] pk3[6] pk3[7] pk3[8] pk3[9] pk3[10] pk3[11] pk3[12] pk3[13] pk3[14] pk3[15] pk3[16] pk3[17] pk3[18] pk4[0] pk4[1] pk4[2] pk4[3] pk4[4] pk4[5] pk4[6] pk4[7] pk4[8] pk4[9] pk4[10] pk4[11] pk4[12] pk4[13] pk4[14] pk4[15] pk4[16] pk4[17] pk4[18] pk5[0] pk5[1] pk5[2] pk5[3] pk5[4] pk5[5] pk5[6] pk5[7] pk5[8] pk5[9] pk5[10] pk5[11] pk5[12] pk5[13] pk5[14] pk5[15] pk5[16] pk5[17] pk5[18] pk6[0] pk6[1] pk6[2] pk6[3] pk6[4] pk6[5] pk6[6] pk6[7] pk6[8] pk6[9] pk6[10] pk6[11] pk6[12] pk6[13] pk6[14] pk6[15] pk6[16] pk6[17] pk6[18] pk7[0] pk7[1] pk7[2] pk7[3] pk7[4] pk7[5] pk7[6] pk7[7] pk7[8] pk7[9] pk7[10] pk7[11] pk7[12] pk7[13] pk7[14] pk7[15] pk7[16] pk7[17] pk7[18] pk8[0] pk8[1] pk8[2] pk8[3] pk8[4] pk8[5] pk8[6] pk8[7] pk8[8] pk8[9] pk8[10] pk8[11] pk8[12] pk8[13] pk8[14] pk8[15] pk8[16] pk8[17] pk8[18] pk9[0] pk9[1] pk9[2] pk9[3] pk9[4] pk9[5] pk9[6] pk9[7] pk9[8] pk9[9] pk9[10] pk9[11] pk9[12] pk9[13] pk9[14] pk9[15] pk9[16] pk9[17] pk9[18] pk10[0] pk10[1] pk10[2] pk10[3] pk10[4] pk10[5] pk10[6] pk10[7] pk10[8] pk10[9] pk10[10] pk10[11] pk10[12] pk10[13] pk10[14] pk10[15] pk10[16] pk10[17] pk10[18] pk11[0] pk11[1] pk11[2] pk11[3] pk11[4] pk11[5] pk11[6] pk11[7] pk11[8] pk11[9] pk11[10] pk11[11] pk11[12] pk11[13] pk11[14] pk11[15] pk11[16] pk11[17] pk11[18] pk12[0] pk12[1] pk12[2] pk12[3] pk12[4] pk12[5] pk12[6] pk12[7] pk12[8] pk12[9] pk12[10] pk12[11] pk12[12] pk12[13] pk12[14] pk12[15] pk12[16] pk12[17] pk12[18] pk13[0] pk13[1] pk13[2] pk13[3] pk13[4] pk13[5] pk13[6] pk13[7] pk13[8] pk13[9] pk13[10] pk13[11] pk13[12] pk13[13] pk13[14] pk13[15] pk13[16] pk13[17] pk13[18] pk14[0] pk14[1] pk14[2] pk14[3] pk14[4] pk14[5] pk14[6] pk14[7] pk14[8] pk14[9] pk14[10] pk14[11] pk14[12] pk14[13] pk14[14] pk14[15] pk14[16] pk14[17] pk14[18] pk15[0] pk15[1] pk15[2] pk15[3] pk15[4] pk15[5] pk15[6] pk15[7] pk15[8] pk15[9] pk15[10] pk15[11] pk15[12] pk15[13] pk15[14] pk15[15] pk15[16] pk15[17] pk15[18] pk16[0] pk16[1] pk16[2] pk16[3] pk16[4] pk16[5] pk16[6] pk16[7] pk16[8] pk16[9] pk16[10] pk16[11] pk16[12] pk16[13] pk16[14] pk16[15] pk16[16] pk16[17] pk16[18] pk17[0] pk17[1] pk17[2] pk17[3] pk17[4] pk17[5] pk17[6] pk17[7] pk17[8] pk17[9] pk17[10] pk17[11] pk17[12] pk17[13] pk17[14] pk17[15] pk17[16] pk17[17] pk17[18] pk18[0] pk18[1] pk18[2] pk18[3] pk18[4] pk18[5] pk18[6] pk18[7] pk18[8] pk18[9] pk18[10] pk18[11] pk18[12] pk18[13] pk18[14] pk18[15] pk18[16] pk18[17] pk18[18] ck0 ck1 ck2 ck3 ck4 ck5 ck6 ck7 ck8 ck9 ck10 ck11 ck12 ck13 ck14 ck15 ck16 ck17 ck18 ck19 ck19]", - "Values": "[01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3030 3030 3030 3030 3030 3030 3030 3030 3030 3030 3030 3030 3030 3030 3030 3030 3030 3030 3030 false false false false false false false false false false false false false false false false false false false 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 0.001 0.001 0.001 0.001 0.001 0.001 0.001 0.001 0.001 0.001 0.001 0.001 0.001 0.001 0.001 0.001 0.001 0.001 0.001 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 01 1 3030 false 1969-12-31 0.001 1.1102230246251565e-16 1.110223e-16 1.1.1.1 0 0 00 -86399000000000 1969-12-31 00:00:01 +0000 UTC 00000001-0000-1000-8000-3132372e302e 0 00000001-0000-1000-8000-3132372e302e 00 1 -86399000000000 -86399000000000]", - "Types": " ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii bigint bigint bigint bigint bigint bigint bigint bigint bigint bigint bigint bigint bigint bigint bigint bigint bigint bigint bigint blob blob blob blob blob blob blob blob blob blob blob blob blob blob blob blob blob blob blob boolean boolean boolean boolean boolean boolean boolean boolean boolean boolean boolean boolean boolean boolean boolean boolean boolean boolean boolean date date date date date date date date date date date date date date date date date date date decimal decimal decimal decimal decimal decimal decimal decimal decimal decimal decimal decimal decimal decimal decimal decimal decimal decimal decimal double double double double double double double double double double double double double double double double double double double float float float float float float float float float float float float float float float float float float float inet inet inet inet inet inet inet inet inet inet inet inet inet inet inet inet inet inet inet int int int int int int int int int int int int int int int int int int int smallint smallint smallint smallint smallint smallint smallint smallint smallint smallint smallint smallint smallint smallint smallint smallint smallint smallint smallint text text text text text text text text text text text text text text text text text text text timestamp timestamp timestamp timestamp timestamp timestamp timestamp timestamp timestamp timestamp timestamp timestamp timestamp timestamp timestamp timestamp timestamp timestamp timestamp timeuuid timeuuid timeuuid timeuuid timeuuid timeuuid timeuuid timeuuid timeuuid timeuuid timeuuid timeuuid timeuuid timeuuid timeuuid timeuuid timeuuid timeuuid timeuuid tinyint tinyint tinyint tinyint tinyint tinyint tinyint tinyint tinyint tinyint tinyint tinyint tinyint tinyint tinyint tinyint tinyint tinyint tinyint uuid uuid uuid uuid uuid uuid uuid uuid uuid uuid uuid uuid uuid uuid uuid uuid uuid uuid uuid varchar varchar varchar varchar varchar varchar varchar varchar varchar varchar varchar varchar varchar varchar varchar varchar varchar varchar varchar varint varint varint varint varint varint varint varint varint varint varint varint varint varint varint varint varint varint varint time time time time time time time time time time time time time time time time time time time ascii bigint blob boolean date decimal double float inet int smallint text time timestamp timeuuid tinyint uuid varchar varint time time", + "Query": "SELECT * FROM ks1.pkAll_ckAll_colAll_cpkAll.cckAll WHERE pk0 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk1 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk2 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk3 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk4 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk5 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk6 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk7 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk8 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk9 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk10 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk11 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk12 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk13 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk14 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk15 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk16 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk17 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk18 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND ck0=? AND ck1=? AND ck2=? AND ck3=? AND ck4=? AND ck5=? AND ck6=? AND ck7=? AND ck8=? AND ck9=? AND ck10=? AND ck11=? AND ck12=? AND ck13=? AND ck14=? AND ck15=? AND ck16=? AND ck17=? AND ck18\u003e? AND ck18\u003c?", + "Names": "[pk0[0] pk0[1] pk0[2] pk0[3] pk0[4] pk0[5] pk0[6] pk0[7] pk0[8] pk0[9] pk0[10] pk0[11] pk0[12] pk0[13] pk0[14] pk0[15] pk0[16] pk0[17] pk0[18] pk1[0] pk1[1] pk1[2] pk1[3] pk1[4] pk1[5] pk1[6] pk1[7] pk1[8] pk1[9] pk1[10] pk1[11] pk1[12] pk1[13] pk1[14] pk1[15] pk1[16] pk1[17] pk1[18] pk2[0] pk2[1] pk2[2] pk2[3] pk2[4] pk2[5] pk2[6] pk2[7] pk2[8] pk2[9] pk2[10] pk2[11] pk2[12] pk2[13] pk2[14] pk2[15] pk2[16] pk2[17] pk2[18] pk3[0] pk3[1] pk3[2] pk3[3] pk3[4] pk3[5] pk3[6] pk3[7] pk3[8] pk3[9] pk3[10] pk3[11] pk3[12] pk3[13] pk3[14] pk3[15] pk3[16] pk3[17] pk3[18] pk4[0] pk4[1] pk4[2] pk4[3] pk4[4] pk4[5] pk4[6] pk4[7] pk4[8] pk4[9] pk4[10] pk4[11] pk4[12] pk4[13] pk4[14] pk4[15] pk4[16] pk4[17] pk4[18] pk5[0] pk5[1] pk5[2] pk5[3] pk5[4] pk5[5] pk5[6] pk5[7] pk5[8] pk5[9] pk5[10] pk5[11] pk5[12] pk5[13] pk5[14] pk5[15] pk5[16] pk5[17] pk5[18] pk6[0] pk6[1] pk6[2] pk6[3] pk6[4] pk6[5] pk6[6] pk6[7] pk6[8] pk6[9] pk6[10] pk6[11] pk6[12] pk6[13] pk6[14] pk6[15] pk6[16] pk6[17] pk6[18] pk7[0] pk7[1] pk7[2] pk7[3] pk7[4] pk7[5] pk7[6] pk7[7] pk7[8] pk7[9] pk7[10] pk7[11] pk7[12] pk7[13] pk7[14] pk7[15] pk7[16] pk7[17] pk7[18] pk8[0] pk8[1] pk8[2] pk8[3] pk8[4] pk8[5] pk8[6] pk8[7] pk8[8] pk8[9] pk8[10] pk8[11] pk8[12] pk8[13] pk8[14] pk8[15] pk8[16] pk8[17] pk8[18] pk9[0] pk9[1] pk9[2] pk9[3] pk9[4] pk9[5] pk9[6] pk9[7] pk9[8] pk9[9] pk9[10] pk9[11] pk9[12] pk9[13] pk9[14] pk9[15] pk9[16] pk9[17] pk9[18] pk10[0] pk10[1] pk10[2] pk10[3] pk10[4] pk10[5] pk10[6] pk10[7] pk10[8] pk10[9] pk10[10] pk10[11] pk10[12] pk10[13] pk10[14] pk10[15] pk10[16] pk10[17] pk10[18] pk11[0] pk11[1] pk11[2] pk11[3] pk11[4] pk11[5] pk11[6] pk11[7] pk11[8] pk11[9] pk11[10] pk11[11] pk11[12] pk11[13] pk11[14] pk11[15] pk11[16] pk11[17] pk11[18] pk12[0] pk12[1] pk12[2] pk12[3] pk12[4] pk12[5] pk12[6] pk12[7] pk12[8] pk12[9] pk12[10] pk12[11] pk12[12] pk12[13] pk12[14] pk12[15] pk12[16] pk12[17] pk12[18] pk13[0] pk13[1] pk13[2] pk13[3] pk13[4] pk13[5] pk13[6] pk13[7] pk13[8] pk13[9] pk13[10] pk13[11] pk13[12] pk13[13] pk13[14] pk13[15] pk13[16] pk13[17] pk13[18] pk14[0] pk14[1] pk14[2] pk14[3] pk14[4] pk14[5] pk14[6] pk14[7] pk14[8] pk14[9] pk14[10] pk14[11] pk14[12] pk14[13] pk14[14] pk14[15] pk14[16] pk14[17] pk14[18] pk15[0] pk15[1] pk15[2] pk15[3] pk15[4] pk15[5] pk15[6] pk15[7] pk15[8] pk15[9] pk15[10] pk15[11] pk15[12] pk15[13] pk15[14] pk15[15] pk15[16] pk15[17] pk15[18] pk16[0] pk16[1] pk16[2] pk16[3] pk16[4] pk16[5] pk16[6] pk16[7] pk16[8] pk16[9] pk16[10] pk16[11] pk16[12] pk16[13] pk16[14] pk16[15] pk16[16] pk16[17] pk16[18] pk17[0] pk17[1] pk17[2] pk17[3] pk17[4] pk17[5] pk17[6] pk17[7] pk17[8] pk17[9] pk17[10] pk17[11] pk17[12] pk17[13] pk17[14] pk17[15] pk17[16] pk17[17] pk17[18] pk18[0] pk18[1] pk18[2] pk18[3] pk18[4] pk18[5] pk18[6] pk18[7] pk18[8] pk18[9] pk18[10] pk18[11] pk18[12] pk18[13] pk18[14] pk18[15] pk18[16] pk18[17] pk18[18] ck0 ck1 ck2 ck3 ck4 ck5 ck6 ck7 ck8 ck9 ck10 ck11 ck12 ck13 ck14 ck15 ck16 ck17 ck18 ck18]", + "Values": "[01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3030 3030 3030 3030 3030 3030 3030 3030 3030 3030 3030 3030 3030 3030 3030 3030 3030 3030 3030 false false false false false false false false false false false false false false false false false false false 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 0.001 0.001 0.001 0.001 0.001 0.001 0.001 0.001 0.001 0.001 0.001 0.001 0.001 0.001 0.001 0.001 0.001 0.001 0.001 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 01 1 3030 false 1969-12-31 0.001 1.1102230246251565e-16 1.110223e-16 1.1.1.1 0 0 00 1969-12-31 00:00:01 +0000 UTC 00000001-0000-1000-8000-3132372e302e 0 00000001-0000-1000-8000-3132372e302e 00 1 -86399000000000 -86399000000000]", + "Types": " ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii bigint bigint bigint bigint bigint bigint bigint bigint bigint bigint bigint bigint bigint bigint bigint bigint bigint bigint bigint blob blob blob blob blob blob blob blob blob blob blob blob blob blob blob blob blob blob blob boolean boolean boolean boolean boolean boolean boolean boolean boolean boolean boolean boolean boolean boolean boolean boolean boolean boolean boolean date date date date date date date date date date date date date date date date date date date decimal decimal decimal decimal decimal decimal decimal decimal decimal decimal decimal decimal decimal decimal decimal decimal decimal decimal decimal double double double double double double double double double double double double double double double double double double double float float float float float float float float float float float float float float float float float float float inet inet inet inet inet inet inet inet inet inet inet inet inet inet inet inet inet inet inet int int int int int int int int int int int int int int int int int int int smallint smallint smallint smallint smallint smallint smallint smallint smallint smallint smallint smallint smallint smallint smallint smallint smallint smallint smallint text text text text text text text text text text text text text text text text text text text timestamp timestamp timestamp timestamp timestamp timestamp timestamp timestamp timestamp timestamp timestamp timestamp timestamp timestamp timestamp timestamp timestamp timestamp timestamp timeuuid timeuuid timeuuid timeuuid timeuuid timeuuid timeuuid timeuuid timeuuid timeuuid timeuuid timeuuid timeuuid timeuuid timeuuid timeuuid timeuuid timeuuid timeuuid tinyint tinyint tinyint tinyint tinyint tinyint tinyint tinyint tinyint tinyint tinyint tinyint tinyint tinyint tinyint tinyint tinyint tinyint tinyint uuid uuid uuid uuid uuid uuid uuid uuid uuid uuid uuid uuid uuid uuid uuid uuid uuid uuid uuid varchar varchar varchar varchar varchar varchar varchar varchar varchar varchar varchar varchar varchar varchar varchar varchar varchar varchar varchar varint varint varint varint varint varint varint varint varint varint varint varint varint varint varint varint varint varint varint time time time time time time time time time time time time time time time time time time time ascii bigint blob boolean date decimal double float inet int smallint text timestamp timeuuid tinyint uuid varchar varint time time", "QueryType": "1" } ], @@ -399,10 +399,10 @@ { "Token": "", "TokenValues": "", - "Query": "SELECT * FROM ks1.pkAll_ckAll_colAll_cpkAll.cckAll.mv_mv_1 WHERE pk0 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk1 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk2 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk3 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk4 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk5 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk6 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk7 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk8 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk9 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk10 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk11 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk12 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk13 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk14 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk15 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk16 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk17 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk18 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND ck0=? AND ck1=? AND ck2=? AND ck3=? AND ck4=? AND ck5=? AND ck6=? AND ck7=? AND ck8=? AND ck9=? AND ck10=? AND ck11=? AND ck12=? AND ck13=? AND ck14=? AND ck15=? AND ck16=? AND ck17=? AND ck18=? AND ck19\u003e? AND ck19\u003c?", - "Names": "[pk0[0] pk0[1] pk0[2] pk0[3] pk0[4] pk0[5] pk0[6] pk0[7] pk0[8] pk0[9] pk0[10] pk0[11] pk0[12] pk0[13] pk0[14] pk0[15] pk0[16] pk0[17] pk0[18] pk1[0] pk1[1] pk1[2] pk1[3] pk1[4] pk1[5] pk1[6] pk1[7] pk1[8] pk1[9] pk1[10] pk1[11] pk1[12] pk1[13] pk1[14] pk1[15] pk1[16] pk1[17] pk1[18] pk2[0] pk2[1] pk2[2] pk2[3] pk2[4] pk2[5] pk2[6] pk2[7] pk2[8] pk2[9] pk2[10] pk2[11] pk2[12] pk2[13] pk2[14] pk2[15] pk2[16] pk2[17] pk2[18] pk3[0] pk3[1] pk3[2] pk3[3] pk3[4] pk3[5] pk3[6] pk3[7] pk3[8] pk3[9] pk3[10] pk3[11] pk3[12] pk3[13] pk3[14] pk3[15] pk3[16] pk3[17] pk3[18] pk4[0] pk4[1] pk4[2] pk4[3] pk4[4] pk4[5] pk4[6] pk4[7] pk4[8] pk4[9] pk4[10] pk4[11] pk4[12] pk4[13] pk4[14] pk4[15] pk4[16] pk4[17] pk4[18] pk5[0] pk5[1] pk5[2] pk5[3] pk5[4] pk5[5] pk5[6] pk5[7] pk5[8] pk5[9] pk5[10] pk5[11] pk5[12] pk5[13] pk5[14] pk5[15] pk5[16] pk5[17] pk5[18] pk6[0] pk6[1] pk6[2] pk6[3] pk6[4] pk6[5] pk6[6] pk6[7] pk6[8] pk6[9] pk6[10] pk6[11] pk6[12] pk6[13] pk6[14] pk6[15] pk6[16] pk6[17] pk6[18] pk7[0] pk7[1] pk7[2] pk7[3] pk7[4] pk7[5] pk7[6] pk7[7] pk7[8] pk7[9] pk7[10] pk7[11] pk7[12] pk7[13] pk7[14] pk7[15] pk7[16] pk7[17] pk7[18] pk8[0] pk8[1] pk8[2] pk8[3] pk8[4] pk8[5] pk8[6] pk8[7] pk8[8] pk8[9] pk8[10] pk8[11] pk8[12] pk8[13] pk8[14] pk8[15] pk8[16] pk8[17] pk8[18] pk9[0] pk9[1] pk9[2] pk9[3] pk9[4] pk9[5] pk9[6] pk9[7] pk9[8] pk9[9] pk9[10] pk9[11] pk9[12] pk9[13] pk9[14] pk9[15] pk9[16] pk9[17] pk9[18] pk10[0] pk10[1] pk10[2] pk10[3] pk10[4] pk10[5] pk10[6] pk10[7] pk10[8] pk10[9] pk10[10] pk10[11] pk10[12] pk10[13] pk10[14] pk10[15] pk10[16] pk10[17] pk10[18] pk11[0] pk11[1] pk11[2] pk11[3] pk11[4] pk11[5] pk11[6] pk11[7] pk11[8] pk11[9] pk11[10] pk11[11] pk11[12] pk11[13] pk11[14] pk11[15] pk11[16] pk11[17] pk11[18] pk12[0] pk12[1] pk12[2] pk12[3] pk12[4] pk12[5] pk12[6] pk12[7] pk12[8] pk12[9] pk12[10] pk12[11] pk12[12] pk12[13] pk12[14] pk12[15] pk12[16] pk12[17] pk12[18] pk13[0] pk13[1] pk13[2] pk13[3] pk13[4] pk13[5] pk13[6] pk13[7] pk13[8] pk13[9] pk13[10] pk13[11] pk13[12] pk13[13] pk13[14] pk13[15] pk13[16] pk13[17] pk13[18] pk14[0] pk14[1] pk14[2] pk14[3] pk14[4] pk14[5] pk14[6] pk14[7] pk14[8] pk14[9] pk14[10] pk14[11] pk14[12] pk14[13] pk14[14] pk14[15] pk14[16] pk14[17] pk14[18] pk15[0] pk15[1] pk15[2] pk15[3] pk15[4] pk15[5] pk15[6] pk15[7] pk15[8] pk15[9] pk15[10] pk15[11] pk15[12] pk15[13] pk15[14] pk15[15] pk15[16] pk15[17] pk15[18] pk16[0] pk16[1] pk16[2] pk16[3] pk16[4] pk16[5] pk16[6] pk16[7] pk16[8] pk16[9] pk16[10] pk16[11] pk16[12] pk16[13] pk16[14] pk16[15] pk16[16] pk16[17] pk16[18] pk17[0] pk17[1] pk17[2] pk17[3] pk17[4] pk17[5] pk17[6] pk17[7] pk17[8] pk17[9] pk17[10] pk17[11] pk17[12] pk17[13] pk17[14] pk17[15] pk17[16] pk17[17] pk17[18] pk18[0] pk18[1] pk18[2] pk18[3] pk18[4] pk18[5] pk18[6] pk18[7] pk18[8] pk18[9] pk18[10] pk18[11] pk18[12] pk18[13] pk18[14] pk18[15] pk18[16] pk18[17] pk18[18] ck0 ck1 ck2 ck3 ck4 ck5 ck6 ck7 ck8 ck9 ck10 ck11 ck12 ck13 ck14 ck15 ck16 ck17 ck18 ck19 ck19]", - "Values": "[01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3030 3030 3030 3030 3030 3030 3030 3030 3030 3030 3030 3030 3030 3030 3030 3030 3030 3030 3030 false false false false false false false false false false false false false false false false false false false 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 0.001 0.001 0.001 0.001 0.001 0.001 0.001 0.001 0.001 0.001 0.001 0.001 0.001 0.001 0.001 0.001 0.001 0.001 0.001 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 01 1 3030 false 1969-12-31 0.001 1.1102230246251565e-16 1.110223e-16 1.1.1.1 0 0 00 -86399000000000 1969-12-31 00:00:01 +0000 UTC 00000001-0000-1000-8000-3132372e302e 0 00000001-0000-1000-8000-3132372e302e 00 1 -86399000000000 -86399000000000]", - "Types": " ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii bigint bigint bigint bigint bigint bigint bigint bigint bigint bigint bigint bigint bigint bigint bigint bigint bigint bigint bigint blob blob blob blob blob blob blob blob blob blob blob blob blob blob blob blob blob blob blob boolean boolean boolean boolean boolean boolean boolean boolean boolean boolean boolean boolean boolean boolean boolean boolean boolean boolean boolean date date date date date date date date date date date date date date date date date date date decimal decimal decimal decimal decimal decimal decimal decimal decimal decimal decimal decimal decimal decimal decimal decimal decimal decimal decimal double double double double double double double double double double double double double double double double double double double float float float float float float float float float float float float float float float float float float float inet inet inet inet inet inet inet inet inet inet inet inet inet inet inet inet inet inet inet int int int int int int int int int int int int int int int int int int int smallint smallint smallint smallint smallint smallint smallint smallint smallint smallint smallint smallint smallint smallint smallint smallint smallint smallint smallint text text text text text text text text text text text text text text text text text text text timestamp timestamp timestamp timestamp timestamp timestamp timestamp timestamp timestamp timestamp timestamp timestamp timestamp timestamp timestamp timestamp timestamp timestamp timestamp timeuuid timeuuid timeuuid timeuuid timeuuid timeuuid timeuuid timeuuid timeuuid timeuuid timeuuid timeuuid timeuuid timeuuid timeuuid timeuuid timeuuid timeuuid timeuuid tinyint tinyint tinyint tinyint tinyint tinyint tinyint tinyint tinyint tinyint tinyint tinyint tinyint tinyint tinyint tinyint tinyint tinyint tinyint uuid uuid uuid uuid uuid uuid uuid uuid uuid uuid uuid uuid uuid uuid uuid uuid uuid uuid uuid varchar varchar varchar varchar varchar varchar varchar varchar varchar varchar varchar varchar varchar varchar varchar varchar varchar varchar varchar varint varint varint varint varint varint varint varint varint varint varint varint varint varint varint varint varint varint varint time time time time time time time time time time time time time time time time time time time ascii bigint blob boolean date decimal double float inet int smallint text time timestamp timeuuid tinyint uuid varchar varint time time", + "Query": "SELECT * FROM ks1.pkAll_ckAll_colAll_cpkAll.cckAll.mv_mv_1 WHERE pk0 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk1 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk2 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk3 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk4 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk5 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk6 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk7 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk8 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk9 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk10 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk11 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk12 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk13 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk14 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk15 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk16 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk17 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk18 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND ck0=? AND ck1=? AND ck2=? AND ck3=? AND ck4=? AND ck5=? AND ck6=? AND ck7=? AND ck8=? AND ck9=? AND ck10=? AND ck11=? AND ck12=? AND ck13=? AND ck14=? AND ck15=? AND ck16=? AND ck17=? AND ck18\u003e? AND ck18\u003c?", + "Names": "[pk0[0] pk0[1] pk0[2] pk0[3] pk0[4] pk0[5] pk0[6] pk0[7] pk0[8] pk0[9] pk0[10] pk0[11] pk0[12] pk0[13] pk0[14] pk0[15] pk0[16] pk0[17] pk0[18] pk1[0] pk1[1] pk1[2] pk1[3] pk1[4] pk1[5] pk1[6] pk1[7] pk1[8] pk1[9] pk1[10] pk1[11] pk1[12] pk1[13] pk1[14] pk1[15] pk1[16] pk1[17] pk1[18] pk2[0] pk2[1] pk2[2] pk2[3] pk2[4] pk2[5] pk2[6] pk2[7] pk2[8] pk2[9] pk2[10] pk2[11] pk2[12] pk2[13] pk2[14] pk2[15] pk2[16] pk2[17] pk2[18] pk3[0] pk3[1] pk3[2] pk3[3] pk3[4] pk3[5] pk3[6] pk3[7] pk3[8] pk3[9] pk3[10] pk3[11] pk3[12] pk3[13] pk3[14] pk3[15] pk3[16] pk3[17] pk3[18] pk4[0] pk4[1] pk4[2] pk4[3] pk4[4] pk4[5] pk4[6] pk4[7] pk4[8] pk4[9] pk4[10] pk4[11] pk4[12] pk4[13] pk4[14] pk4[15] pk4[16] pk4[17] pk4[18] pk5[0] pk5[1] pk5[2] pk5[3] pk5[4] pk5[5] pk5[6] pk5[7] pk5[8] pk5[9] pk5[10] pk5[11] pk5[12] pk5[13] pk5[14] pk5[15] pk5[16] pk5[17] pk5[18] pk6[0] pk6[1] pk6[2] pk6[3] pk6[4] pk6[5] pk6[6] pk6[7] pk6[8] pk6[9] pk6[10] pk6[11] pk6[12] pk6[13] pk6[14] pk6[15] pk6[16] pk6[17] pk6[18] pk7[0] pk7[1] pk7[2] pk7[3] pk7[4] pk7[5] pk7[6] pk7[7] pk7[8] pk7[9] pk7[10] pk7[11] pk7[12] pk7[13] pk7[14] pk7[15] pk7[16] pk7[17] pk7[18] pk8[0] pk8[1] pk8[2] pk8[3] pk8[4] pk8[5] pk8[6] pk8[7] pk8[8] pk8[9] pk8[10] pk8[11] pk8[12] pk8[13] pk8[14] pk8[15] pk8[16] pk8[17] pk8[18] pk9[0] pk9[1] pk9[2] pk9[3] pk9[4] pk9[5] pk9[6] pk9[7] pk9[8] pk9[9] pk9[10] pk9[11] pk9[12] pk9[13] pk9[14] pk9[15] pk9[16] pk9[17] pk9[18] pk10[0] pk10[1] pk10[2] pk10[3] pk10[4] pk10[5] pk10[6] pk10[7] pk10[8] pk10[9] pk10[10] pk10[11] pk10[12] pk10[13] pk10[14] pk10[15] pk10[16] pk10[17] pk10[18] pk11[0] pk11[1] pk11[2] pk11[3] pk11[4] pk11[5] pk11[6] pk11[7] pk11[8] pk11[9] pk11[10] pk11[11] pk11[12] pk11[13] pk11[14] pk11[15] pk11[16] pk11[17] pk11[18] pk12[0] pk12[1] pk12[2] pk12[3] pk12[4] pk12[5] pk12[6] pk12[7] pk12[8] pk12[9] pk12[10] pk12[11] pk12[12] pk12[13] pk12[14] pk12[15] pk12[16] pk12[17] pk12[18] pk13[0] pk13[1] pk13[2] pk13[3] pk13[4] pk13[5] pk13[6] pk13[7] pk13[8] pk13[9] pk13[10] pk13[11] pk13[12] pk13[13] pk13[14] pk13[15] pk13[16] pk13[17] pk13[18] pk14[0] pk14[1] pk14[2] pk14[3] pk14[4] pk14[5] pk14[6] pk14[7] pk14[8] pk14[9] pk14[10] pk14[11] pk14[12] pk14[13] pk14[14] pk14[15] pk14[16] pk14[17] pk14[18] pk15[0] pk15[1] pk15[2] pk15[3] pk15[4] pk15[5] pk15[6] pk15[7] pk15[8] pk15[9] pk15[10] pk15[11] pk15[12] pk15[13] pk15[14] pk15[15] pk15[16] pk15[17] pk15[18] pk16[0] pk16[1] pk16[2] pk16[3] pk16[4] pk16[5] pk16[6] pk16[7] pk16[8] pk16[9] pk16[10] pk16[11] pk16[12] pk16[13] pk16[14] pk16[15] pk16[16] pk16[17] pk16[18] pk17[0] pk17[1] pk17[2] pk17[3] pk17[4] pk17[5] pk17[6] pk17[7] pk17[8] pk17[9] pk17[10] pk17[11] pk17[12] pk17[13] pk17[14] pk17[15] pk17[16] pk17[17] pk17[18] pk18[0] pk18[1] pk18[2] pk18[3] pk18[4] pk18[5] pk18[6] pk18[7] pk18[8] pk18[9] pk18[10] pk18[11] pk18[12] pk18[13] pk18[14] pk18[15] pk18[16] pk18[17] pk18[18] ck0 ck1 ck2 ck3 ck4 ck5 ck6 ck7 ck8 ck9 ck10 ck11 ck12 ck13 ck14 ck15 ck16 ck17 ck18 ck18]", + "Values": "[01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3030 3030 3030 3030 3030 3030 3030 3030 3030 3030 3030 3030 3030 3030 3030 3030 3030 3030 3030 false false false false false false false false false false false false false false false false false false false 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 0.001 0.001 0.001 0.001 0.001 0.001 0.001 0.001 0.001 0.001 0.001 0.001 0.001 0.001 0.001 0.001 0.001 0.001 0.001 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 01 1 3030 false 1969-12-31 0.001 1.1102230246251565e-16 1.110223e-16 1.1.1.1 0 0 00 1969-12-31 00:00:01 +0000 UTC 00000001-0000-1000-8000-3132372e302e 0 00000001-0000-1000-8000-3132372e302e 00 1 -86399000000000 -86399000000000]", + "Types": " ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii bigint bigint bigint bigint bigint bigint bigint bigint bigint bigint bigint bigint bigint bigint bigint bigint bigint bigint bigint blob blob blob blob blob blob blob blob blob blob blob blob blob blob blob blob blob blob blob boolean boolean boolean boolean boolean boolean boolean boolean boolean boolean boolean boolean boolean boolean boolean boolean boolean boolean boolean date date date date date date date date date date date date date date date date date date date decimal decimal decimal decimal decimal decimal decimal decimal decimal decimal decimal decimal decimal decimal decimal decimal decimal decimal decimal double double double double double double double double double double double double double double double double double double double float float float float float float float float float float float float float float float float float float float inet inet inet inet inet inet inet inet inet inet inet inet inet inet inet inet inet inet inet int int int int int int int int int int int int int int int int int int int smallint smallint smallint smallint smallint smallint smallint smallint smallint smallint smallint smallint smallint smallint smallint smallint smallint smallint smallint text text text text text text text text text text text text text text text text text text text timestamp timestamp timestamp timestamp timestamp timestamp timestamp timestamp timestamp timestamp timestamp timestamp timestamp timestamp timestamp timestamp timestamp timestamp timestamp timeuuid timeuuid timeuuid timeuuid timeuuid timeuuid timeuuid timeuuid timeuuid timeuuid timeuuid timeuuid timeuuid timeuuid timeuuid timeuuid timeuuid timeuuid timeuuid tinyint tinyint tinyint tinyint tinyint tinyint tinyint tinyint tinyint tinyint tinyint tinyint tinyint tinyint tinyint tinyint tinyint tinyint tinyint uuid uuid uuid uuid uuid uuid uuid uuid uuid uuid uuid uuid uuid uuid uuid uuid uuid uuid uuid varchar varchar varchar varchar varchar varchar varchar varchar varchar varchar varchar varchar varchar varchar varchar varchar varchar varchar varchar varint varint varint varint varint varint varint varint varint varint varint varint varint varint varint varint varint varint varint time time time time time time time time time time time time time time time time time time time ascii bigint blob boolean date decimal double float inet int smallint text timestamp timeuuid tinyint uuid varchar varint time time", "QueryType": "1" } ], @@ -410,10 +410,10 @@ { "Token": "", "TokenValues": "", - "Query": "SELECT * FROM ks1.pkAll_ckAll_colAll_cpkAll.cckAll.mvNp_mv_1 WHERE col1 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk0 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk1 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk2 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk3 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk4 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk5 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk6 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk7 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk8 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk9 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk10 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk11 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk12 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk13 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk14 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk15 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk16 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk17 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk18 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND ck0=? AND ck1=? AND ck2=? AND ck3=? AND ck4=? AND ck5=? AND ck6=? AND ck7=? AND ck8=? AND ck9=? AND ck10=? AND ck11=? AND ck12=? AND ck13=? AND ck14=? AND ck15=? AND ck16=? AND ck17=? AND ck18=? AND ck19\u003e? AND ck19\u003c?", - "Names": "[col1[0] col1[1] col1[2] col1[3] col1[4] col1[5] col1[6] col1[7] col1[8] col1[9] col1[10] col1[11] col1[12] col1[13] col1[14] col1[15] col1[16] col1[17] col1[18] pk0[0] pk0[1] pk0[2] pk0[3] pk0[4] pk0[5] pk0[6] pk0[7] pk0[8] pk0[9] pk0[10] pk0[11] pk0[12] pk0[13] pk0[14] pk0[15] pk0[16] pk0[17] pk0[18] pk1[0] pk1[1] pk1[2] pk1[3] pk1[4] pk1[5] pk1[6] pk1[7] pk1[8] pk1[9] pk1[10] pk1[11] pk1[12] pk1[13] pk1[14] pk1[15] pk1[16] pk1[17] pk1[18] pk2[0] pk2[1] pk2[2] pk2[3] pk2[4] pk2[5] pk2[6] pk2[7] pk2[8] pk2[9] pk2[10] pk2[11] pk2[12] pk2[13] pk2[14] pk2[15] pk2[16] pk2[17] pk2[18] pk3[0] pk3[1] pk3[2] pk3[3] pk3[4] pk3[5] pk3[6] pk3[7] pk3[8] pk3[9] pk3[10] pk3[11] pk3[12] pk3[13] pk3[14] pk3[15] pk3[16] pk3[17] pk3[18] pk4[0] pk4[1] pk4[2] pk4[3] pk4[4] pk4[5] pk4[6] pk4[7] pk4[8] pk4[9] pk4[10] pk4[11] pk4[12] pk4[13] pk4[14] pk4[15] pk4[16] pk4[17] pk4[18] pk5[0] pk5[1] pk5[2] pk5[3] pk5[4] pk5[5] pk5[6] pk5[7] pk5[8] pk5[9] pk5[10] pk5[11] pk5[12] pk5[13] pk5[14] pk5[15] pk5[16] pk5[17] pk5[18] pk6[0] pk6[1] pk6[2] pk6[3] pk6[4] pk6[5] pk6[6] pk6[7] pk6[8] pk6[9] pk6[10] pk6[11] pk6[12] pk6[13] pk6[14] pk6[15] pk6[16] pk6[17] pk6[18] pk7[0] pk7[1] pk7[2] pk7[3] pk7[4] pk7[5] pk7[6] pk7[7] pk7[8] pk7[9] pk7[10] pk7[11] pk7[12] pk7[13] pk7[14] pk7[15] pk7[16] pk7[17] pk7[18] pk8[0] pk8[1] pk8[2] pk8[3] pk8[4] pk8[5] pk8[6] pk8[7] pk8[8] pk8[9] pk8[10] pk8[11] pk8[12] pk8[13] pk8[14] pk8[15] pk8[16] pk8[17] pk8[18] pk9[0] pk9[1] pk9[2] pk9[3] pk9[4] pk9[5] pk9[6] pk9[7] pk9[8] pk9[9] pk9[10] pk9[11] pk9[12] pk9[13] pk9[14] pk9[15] pk9[16] pk9[17] pk9[18] pk10[0] pk10[1] pk10[2] pk10[3] pk10[4] pk10[5] pk10[6] pk10[7] pk10[8] pk10[9] pk10[10] pk10[11] pk10[12] pk10[13] pk10[14] pk10[15] pk10[16] pk10[17] pk10[18] pk11[0] pk11[1] pk11[2] pk11[3] pk11[4] pk11[5] pk11[6] pk11[7] pk11[8] pk11[9] pk11[10] pk11[11] pk11[12] pk11[13] pk11[14] pk11[15] pk11[16] pk11[17] pk11[18] pk12[0] pk12[1] pk12[2] pk12[3] pk12[4] pk12[5] pk12[6] pk12[7] pk12[8] pk12[9] pk12[10] pk12[11] pk12[12] pk12[13] pk12[14] pk12[15] pk12[16] pk12[17] pk12[18] pk13[0] pk13[1] pk13[2] pk13[3] pk13[4] pk13[5] pk13[6] pk13[7] pk13[8] pk13[9] pk13[10] pk13[11] pk13[12] pk13[13] pk13[14] pk13[15] pk13[16] pk13[17] pk13[18] pk14[0] pk14[1] pk14[2] pk14[3] pk14[4] pk14[5] pk14[6] pk14[7] pk14[8] pk14[9] pk14[10] pk14[11] pk14[12] pk14[13] pk14[14] pk14[15] pk14[16] pk14[17] pk14[18] pk15[0] pk15[1] pk15[2] pk15[3] pk15[4] pk15[5] pk15[6] pk15[7] pk15[8] pk15[9] pk15[10] pk15[11] pk15[12] pk15[13] pk15[14] pk15[15] pk15[16] pk15[17] pk15[18] pk16[0] pk16[1] pk16[2] pk16[3] pk16[4] pk16[5] pk16[6] pk16[7] pk16[8] pk16[9] pk16[10] pk16[11] pk16[12] pk16[13] pk16[14] pk16[15] pk16[16] pk16[17] pk16[18] pk17[0] pk17[1] pk17[2] pk17[3] pk17[4] pk17[5] pk17[6] pk17[7] pk17[8] pk17[9] pk17[10] pk17[11] pk17[12] pk17[13] pk17[14] pk17[15] pk17[16] pk17[17] pk17[18] pk18[0] pk18[1] pk18[2] pk18[3] pk18[4] pk18[5] pk18[6] pk18[7] pk18[8] pk18[9] pk18[10] pk18[11] pk18[12] pk18[13] pk18[14] pk18[15] pk18[16] pk18[17] pk18[18] ck0 ck1 ck2 ck3 ck4 ck5 ck6 ck7 ck8 ck9 ck10 ck11 ck12 ck13 ck14 ck15 ck16 ck17 ck18 ck19 ck19]", - "Values": "[01 00 00 00 01 00 00 00 01 00 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3031 3031 3031 3031 3031 3031 3031 3031 3031 3031 3031 3031 3031 3031 3031 3031 3031 3031 3031 false false false false false false false false false false false false false false false false false false false 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 0.001 0.001 0.001 0.001 0.001 0.001 0.001 0.001 0.001 0.001 0.001 0.001 0.001 0.001 0.001 0.001 0.001 0.001 0.001 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 00 1 3031 false 1969-12-31 0.001 1.1102230246251565e-16 1.110223e-16 1.1.1.1 0 0 00 -86399000000000 1969-12-31 00:00:01 +0000 UTC 00000001-0000-1000-8000-3132372e302e 0 00000001-0000-1000-8000-3132372e302e 00 1 -86399000000000 -86399000000000]", - "Types": " ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii bigint bigint bigint bigint bigint bigint bigint bigint bigint bigint bigint bigint bigint bigint bigint bigint bigint bigint bigint blob blob blob blob blob blob blob blob blob blob blob blob blob blob blob blob blob blob blob boolean boolean boolean boolean boolean boolean boolean boolean boolean boolean boolean boolean boolean boolean boolean boolean boolean boolean boolean date date date date date date date date date date date date date date date date date date date decimal decimal decimal decimal decimal decimal decimal decimal decimal decimal decimal decimal decimal decimal decimal decimal decimal decimal decimal double double double double double double double double double double double double double double double double double double double float float float float float float float float float float float float float float float float float float float inet inet inet inet inet inet inet inet inet inet inet inet inet inet inet inet inet inet inet int int int int int int int int int int int int int int int int int int int smallint smallint smallint smallint smallint smallint smallint smallint smallint smallint smallint smallint smallint smallint smallint smallint smallint smallint smallint text text text text text text text text text text text text text text text text text text text timestamp timestamp timestamp timestamp timestamp timestamp timestamp timestamp timestamp timestamp timestamp timestamp timestamp timestamp timestamp timestamp timestamp timestamp timestamp timeuuid timeuuid timeuuid timeuuid timeuuid timeuuid timeuuid timeuuid timeuuid timeuuid timeuuid timeuuid timeuuid timeuuid timeuuid timeuuid timeuuid timeuuid timeuuid tinyint tinyint tinyint tinyint tinyint tinyint tinyint tinyint tinyint tinyint tinyint tinyint tinyint tinyint tinyint tinyint tinyint tinyint tinyint uuid uuid uuid uuid uuid uuid uuid uuid uuid uuid uuid uuid uuid uuid uuid uuid uuid uuid uuid varchar varchar varchar varchar varchar varchar varchar varchar varchar varchar varchar varchar varchar varchar varchar varchar varchar varchar varchar varint varint varint varint varint varint varint varint varint varint varint varint varint varint varint varint varint varint varint time time time time time time time time time time time time time time time time time time time ascii bigint blob boolean date decimal double float inet int smallint text time timestamp timeuuid tinyint uuid varchar varint time time", + "Query": "SELECT * FROM ks1.pkAll_ckAll_colAll_cpkAll.cckAll.mvNp_mv_1 WHERE col1 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk0 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk1 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk2 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk3 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk4 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk5 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk6 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk7 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk8 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk9 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk10 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk11 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk12 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk13 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk14 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk15 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk16 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk17 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND pk18 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) AND ck0=? AND ck1=? AND ck2=? AND ck3=? AND ck4=? AND ck5=? AND ck6=? AND ck7=? AND ck8=? AND ck9=? AND ck10=? AND ck11=? AND ck12=? AND ck13=? AND ck14=? AND ck15=? AND ck16=? AND ck17=? AND ck18\u003e? AND ck18\u003c?", + "Names": "[col1[0] col1[1] col1[2] col1[3] col1[4] col1[5] col1[6] col1[7] col1[8] col1[9] col1[10] col1[11] col1[12] col1[13] col1[14] col1[15] col1[16] col1[17] col1[18] pk0[0] pk0[1] pk0[2] pk0[3] pk0[4] pk0[5] pk0[6] pk0[7] pk0[8] pk0[9] pk0[10] pk0[11] pk0[12] pk0[13] pk0[14] pk0[15] pk0[16] pk0[17] pk0[18] pk1[0] pk1[1] pk1[2] pk1[3] pk1[4] pk1[5] pk1[6] pk1[7] pk1[8] pk1[9] pk1[10] pk1[11] pk1[12] pk1[13] pk1[14] pk1[15] pk1[16] pk1[17] pk1[18] pk2[0] pk2[1] pk2[2] pk2[3] pk2[4] pk2[5] pk2[6] pk2[7] pk2[8] pk2[9] pk2[10] pk2[11] pk2[12] pk2[13] pk2[14] pk2[15] pk2[16] pk2[17] pk2[18] pk3[0] pk3[1] pk3[2] pk3[3] pk3[4] pk3[5] pk3[6] pk3[7] pk3[8] pk3[9] pk3[10] pk3[11] pk3[12] pk3[13] pk3[14] pk3[15] pk3[16] pk3[17] pk3[18] pk4[0] pk4[1] pk4[2] pk4[3] pk4[4] pk4[5] pk4[6] pk4[7] pk4[8] pk4[9] pk4[10] pk4[11] pk4[12] pk4[13] pk4[14] pk4[15] pk4[16] pk4[17] pk4[18] pk5[0] pk5[1] pk5[2] pk5[3] pk5[4] pk5[5] pk5[6] pk5[7] pk5[8] pk5[9] pk5[10] pk5[11] pk5[12] pk5[13] pk5[14] pk5[15] pk5[16] pk5[17] pk5[18] pk6[0] pk6[1] pk6[2] pk6[3] pk6[4] pk6[5] pk6[6] pk6[7] pk6[8] pk6[9] pk6[10] pk6[11] pk6[12] pk6[13] pk6[14] pk6[15] pk6[16] pk6[17] pk6[18] pk7[0] pk7[1] pk7[2] pk7[3] pk7[4] pk7[5] pk7[6] pk7[7] pk7[8] pk7[9] pk7[10] pk7[11] pk7[12] pk7[13] pk7[14] pk7[15] pk7[16] pk7[17] pk7[18] pk8[0] pk8[1] pk8[2] pk8[3] pk8[4] pk8[5] pk8[6] pk8[7] pk8[8] pk8[9] pk8[10] pk8[11] pk8[12] pk8[13] pk8[14] pk8[15] pk8[16] pk8[17] pk8[18] pk9[0] pk9[1] pk9[2] pk9[3] pk9[4] pk9[5] pk9[6] pk9[7] pk9[8] pk9[9] pk9[10] pk9[11] pk9[12] pk9[13] pk9[14] pk9[15] pk9[16] pk9[17] pk9[18] pk10[0] pk10[1] pk10[2] pk10[3] pk10[4] pk10[5] pk10[6] pk10[7] pk10[8] pk10[9] pk10[10] pk10[11] pk10[12] pk10[13] pk10[14] pk10[15] pk10[16] pk10[17] pk10[18] pk11[0] pk11[1] pk11[2] pk11[3] pk11[4] pk11[5] pk11[6] pk11[7] pk11[8] pk11[9] pk11[10] pk11[11] pk11[12] pk11[13] pk11[14] pk11[15] pk11[16] pk11[17] pk11[18] pk12[0] pk12[1] pk12[2] pk12[3] pk12[4] pk12[5] pk12[6] pk12[7] pk12[8] pk12[9] pk12[10] pk12[11] pk12[12] pk12[13] pk12[14] pk12[15] pk12[16] pk12[17] pk12[18] pk13[0] pk13[1] pk13[2] pk13[3] pk13[4] pk13[5] pk13[6] pk13[7] pk13[8] pk13[9] pk13[10] pk13[11] pk13[12] pk13[13] pk13[14] pk13[15] pk13[16] pk13[17] pk13[18] pk14[0] pk14[1] pk14[2] pk14[3] pk14[4] pk14[5] pk14[6] pk14[7] pk14[8] pk14[9] pk14[10] pk14[11] pk14[12] pk14[13] pk14[14] pk14[15] pk14[16] pk14[17] pk14[18] pk15[0] pk15[1] pk15[2] pk15[3] pk15[4] pk15[5] pk15[6] pk15[7] pk15[8] pk15[9] pk15[10] pk15[11] pk15[12] pk15[13] pk15[14] pk15[15] pk15[16] pk15[17] pk15[18] pk16[0] pk16[1] pk16[2] pk16[3] pk16[4] pk16[5] pk16[6] pk16[7] pk16[8] pk16[9] pk16[10] pk16[11] pk16[12] pk16[13] pk16[14] pk16[15] pk16[16] pk16[17] pk16[18] pk17[0] pk17[1] pk17[2] pk17[3] pk17[4] pk17[5] pk17[6] pk17[7] pk17[8] pk17[9] pk17[10] pk17[11] pk17[12] pk17[13] pk17[14] pk17[15] pk17[16] pk17[17] pk17[18] pk18[0] pk18[1] pk18[2] pk18[3] pk18[4] pk18[5] pk18[6] pk18[7] pk18[8] pk18[9] pk18[10] pk18[11] pk18[12] pk18[13] pk18[14] pk18[15] pk18[16] pk18[17] pk18[18] ck0 ck1 ck2 ck3 ck4 ck5 ck6 ck7 ck8 ck9 ck10 ck11 ck12 ck13 ck14 ck15 ck16 ck17 ck18 ck18]", + "Values": "[01 00 00 00 01 00 00 00 01 00 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3031 3031 3031 3031 3031 3031 3031 3031 3031 3031 3031 3031 3031 3031 3031 3031 3031 3031 3031 false false false false false false false false false false false false false false false false false false false 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 1969-12-31 0.001 0.001 0.001 0.001 0.001 0.001 0.001 0.001 0.001 0.001 0.001 0.001 0.001 0.001 0.001 0.001 0.001 0.001 0.001 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.1102230246251565e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.110223e-16 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 1969-12-31 00:00:01 +0000 UTC 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00000001-0000-1000-8000-3132372e302e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 -86399000000000 00 1 3031 false 1969-12-31 0.001 1.1102230246251565e-16 1.110223e-16 1.1.1.1 0 0 00 1969-12-31 00:00:01 +0000 UTC 00000001-0000-1000-8000-3132372e302e 0 00000001-0000-1000-8000-3132372e302e 00 1 -86399000000000 -86399000000000]", + "Types": " ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii ascii bigint bigint bigint bigint bigint bigint bigint bigint bigint bigint bigint bigint bigint bigint bigint bigint bigint bigint bigint blob blob blob blob blob blob blob blob blob blob blob blob blob blob blob blob blob blob blob boolean boolean boolean boolean boolean boolean boolean boolean boolean boolean boolean boolean boolean boolean boolean boolean boolean boolean boolean date date date date date date date date date date date date date date date date date date date decimal decimal decimal decimal decimal decimal decimal decimal decimal decimal decimal decimal decimal decimal decimal decimal decimal decimal decimal double double double double double double double double double double double double double double double double double double double float float float float float float float float float float float float float float float float float float float inet inet inet inet inet inet inet inet inet inet inet inet inet inet inet inet inet inet inet int int int int int int int int int int int int int int int int int int int smallint smallint smallint smallint smallint smallint smallint smallint smallint smallint smallint smallint smallint smallint smallint smallint smallint smallint smallint text text text text text text text text text text text text text text text text text text text timestamp timestamp timestamp timestamp timestamp timestamp timestamp timestamp timestamp timestamp timestamp timestamp timestamp timestamp timestamp timestamp timestamp timestamp timestamp timeuuid timeuuid timeuuid timeuuid timeuuid timeuuid timeuuid timeuuid timeuuid timeuuid timeuuid timeuuid timeuuid timeuuid timeuuid timeuuid timeuuid timeuuid timeuuid tinyint tinyint tinyint tinyint tinyint tinyint tinyint tinyint tinyint tinyint tinyint tinyint tinyint tinyint tinyint tinyint tinyint tinyint tinyint uuid uuid uuid uuid uuid uuid uuid uuid uuid uuid uuid uuid uuid uuid uuid uuid uuid uuid uuid varchar varchar varchar varchar varchar varchar varchar varchar varchar varchar varchar varchar varchar varchar varchar varchar varchar varchar varchar varint varint varint varint varint varint varint varint varint varint varint varint varint varint varint varint varint varint varint time time time time time time time time time time time time time time time time time time time ascii bigint blob boolean date decimal double float inet int smallint text timestamp timeuuid tinyint uuid varchar varint time time", "QueryType": "1" } ] diff --git a/pkg/generators/test_expected_data/check/single_index.json b/pkg/generators/test_expected_data/check/single_index.json index e3c969b7..bd0f6977 100644 --- a/pkg/generators/test_expected_data/check/single_index.json +++ b/pkg/generators/test_expected_data/check/single_index.json @@ -25,10 +25,10 @@ { "Token": "", "TokenValues": "", - "Query": "SELECT * FROM ks1.pkAll_ckAll_colAll_idxAll WHERE col0=? AND col1=? AND col2=? AND col3=? AND col4=? AND col5=? AND col6=? AND col7=? AND col8=? AND col9=? AND col10=? AND col11=? AND col12=? AND col13=? AND col14=? AND col15=? AND col16=? AND col17=? AND col18=? AND col19=? AND col20=? ALLOW FILTERING", - "Names": "[col0 col1 col2 col3 col4 col5 col6 col7 col8 col9 col10 col11 col12 col13 col14 col15 col16 col17 col18 col19 col20]", - "Values": "[1m0s 01 1 3030 false 1969-12-31 0.001 1.1102230246251565e-16 1.110223e-16 1.1.1.1 0 0 00 -86399000000000 1969-12-31 00:00:01 +0000 UTC 00000001-0000-1000-8000-3132372e302e 0 00000001-0000-1000-8000-3132372e302e 00 1 -86399000000000]", - "Types": " duration ascii bigint blob boolean date decimal double float inet int smallint text time timestamp timeuuid tinyint uuid varchar varint time", + "Query": "SELECT * FROM ks1.pkAll_ckAll_colAll_idxAll WHERE col0=? AND col1=? AND col2=? AND col3=? AND col4=? AND col5=? AND col6=? AND col7=? AND col8=? AND col9=? AND col10=? AND col11=? AND col12=? AND col13=? AND col14=? AND col15=? AND col16=? AND col17=? AND col18=? AND col19=? ALLOW FILTERING", + "Names": "[col0 col1 col2 col3 col4 col5 col6 col7 col8 col9 col10 col11 col12 col13 col14 col15 col16 col17 col18 col19]", + "Values": "[1m0s 01 1 3030 false 1969-12-31 0.001 1.1102230246251565e-16 1.110223e-16 1.1.1.1 0 0 00 1969-12-31 00:00:01 +0000 UTC 00000001-0000-1000-8000-3132372e302e 0 00000001-0000-1000-8000-3132372e302e 00 1 -86399000000000]", + "Types": " duration ascii bigint blob boolean date decimal double float inet int smallint text timestamp timeuuid tinyint uuid varchar varint time", "QueryType": "2" } ] diff --git a/pkg/generators/test_expected_data/ddl/add_column.json b/pkg/generators/test_expected_data/ddl/add_column.json new file mode 100644 index 00000000..e30f852d --- /dev/null +++ b/pkg/generators/test_expected_data/ddl/add_column.json @@ -0,0 +1,211 @@ +{ + "pk1_ck1_col1_addSt_0": [ + { + "Token": "", + "TokenValues": "", + "Query": "ALTER TABLE ks1.pk1_ck1_col1_addSt_0 ADD col2 ascii", + "Names": "[]", + "Values": "[]", + "Types": "", + "QueryType": "0" + } + ], + "pk1_ck1_col1_addSt_1": [ + { + "Token": "", + "TokenValues": "", + "Query": "ALTER TABLE ks1.pk1_ck1_col1_addSt_1 ADD col2 bigint", + "Names": "[]", + "Values": "[]", + "Types": "", + "QueryType": "0" + } + ], + "pk1_ck1_col1_addSt_10": [ + { + "Token": "", + "TokenValues": "", + "Query": "ALTER TABLE ks1.pk1_ck1_col1_addSt_10 ADD col2 text", + "Names": "[]", + "Values": "[]", + "Types": "", + "QueryType": "0" + } + ], + "pk1_ck1_col1_addSt_11": [ + { + "Token": "", + "TokenValues": "", + "Query": "ALTER TABLE ks1.pk1_ck1_col1_addSt_11 ADD col2 timestamp", + "Names": "[]", + "Values": "[]", + "Types": "", + "QueryType": "0" + } + ], + "pk1_ck1_col1_addSt_12": [ + { + "Token": "", + "TokenValues": "", + "Query": "ALTER TABLE ks1.pk1_ck1_col1_addSt_12 ADD col2 timeuuid", + "Names": "[]", + "Values": "[]", + "Types": "", + "QueryType": "0" + } + ], + "pk1_ck1_col1_addSt_13": [ + { + "Token": "", + "TokenValues": "", + "Query": "ALTER TABLE ks1.pk1_ck1_col1_addSt_13 ADD col2 tinyint", + "Names": "[]", + "Values": "[]", + "Types": "", + "QueryType": "0" + } + ], + "pk1_ck1_col1_addSt_14": [ + { + "Token": "", + "TokenValues": "", + "Query": "ALTER TABLE ks1.pk1_ck1_col1_addSt_14 ADD col2 uuid", + "Names": "[]", + "Values": "[]", + "Types": "", + "QueryType": "0" + } + ], + "pk1_ck1_col1_addSt_15": [ + { + "Token": "", + "TokenValues": "", + "Query": "ALTER TABLE ks1.pk1_ck1_col1_addSt_15 ADD col2 varchar", + "Names": "[]", + "Values": "[]", + "Types": "", + "QueryType": "0" + } + ], + "pk1_ck1_col1_addSt_16": [ + { + "Token": "", + "TokenValues": "", + "Query": "ALTER TABLE ks1.pk1_ck1_col1_addSt_16 ADD col2 varint", + "Names": "[]", + "Values": "[]", + "Types": "", + "QueryType": "0" + } + ], + "pk1_ck1_col1_addSt_17": [ + { + "Token": "", + "TokenValues": "", + "Query": "ALTER TABLE ks1.pk1_ck1_col1_addSt_17 ADD col2 boolean", + "Names": "[]", + "Values": "[]", + "Types": "", + "QueryType": "0" + } + ], + "pk1_ck1_col1_addSt_18": [ + { + "Token": "", + "TokenValues": "", + "Query": "ALTER TABLE ks1.pk1_ck1_col1_addSt_18 ADD col2 duration", + "Names": "[]", + "Values": "[]", + "Types": "", + "QueryType": "0" + } + ], + "pk1_ck1_col1_addSt_2": [ + { + "Token": "", + "TokenValues": "", + "Query": "ALTER TABLE ks1.pk1_ck1_col1_addSt_2 ADD col2 blob", + "Names": "[]", + "Values": "[]", + "Types": "", + "QueryType": "0" + } + ], + "pk1_ck1_col1_addSt_3": [ + { + "Token": "", + "TokenValues": "", + "Query": "ALTER TABLE ks1.pk1_ck1_col1_addSt_3 ADD col2 date", + "Names": "[]", + "Values": "[]", + "Types": "", + "QueryType": "0" + } + ], + "pk1_ck1_col1_addSt_4": [ + { + "Token": "", + "TokenValues": "", + "Query": "ALTER TABLE ks1.pk1_ck1_col1_addSt_4 ADD col2 decimal", + "Names": "[]", + "Values": "[]", + "Types": "", + "QueryType": "0" + } + ], + "pk1_ck1_col1_addSt_5": [ + { + "Token": "", + "TokenValues": "", + "Query": "ALTER TABLE ks1.pk1_ck1_col1_addSt_5 ADD col2 double", + "Names": "[]", + "Values": "[]", + "Types": "", + "QueryType": "0" + } + ], + "pk1_ck1_col1_addSt_6": [ + { + "Token": "", + "TokenValues": "", + "Query": "ALTER TABLE ks1.pk1_ck1_col1_addSt_6 ADD col2 float", + "Names": "[]", + "Values": "[]", + "Types": "", + "QueryType": "0" + } + ], + "pk1_ck1_col1_addSt_7": [ + { + "Token": "", + "TokenValues": "", + "Query": "ALTER TABLE ks1.pk1_ck1_col1_addSt_7 ADD col2 inet", + "Names": "[]", + "Values": "[]", + "Types": "", + "QueryType": "0" + } + ], + "pk1_ck1_col1_addSt_8": [ + { + "Token": "", + "TokenValues": "", + "Query": "ALTER TABLE ks1.pk1_ck1_col1_addSt_8 ADD col2 int", + "Names": "[]", + "Values": "[]", + "Types": "", + "QueryType": "0" + } + ], + "pk1_ck1_col1_addSt_9": [ + { + "Token": "", + "TokenValues": "", + "Query": "ALTER TABLE ks1.pk1_ck1_col1_addSt_9 ADD col2 smallint", + "Names": "[]", + "Values": "[]", + "Types": "", + "QueryType": "0" + } + ] +} \ No newline at end of file diff --git a/pkg/generators/test_expected_data/ddl/drop_column.json b/pkg/generators/test_expected_data/ddl/drop_column.json index 73a40d4c..9cef15d4 100644 --- a/pkg/generators/test_expected_data/ddl/drop_column.json +++ b/pkg/generators/test_expected_data/ddl/drop_column.json @@ -14,7 +14,7 @@ { "Token": "", "TokenValues": "", - "Query": "ALTER TABLE ks1.pkAll_ckAll_colAll_delLast DROP col20", + "Query": "ALTER TABLE ks1.pkAll_ckAll_colAll_delLast DROP col19", "Names": "[]", "Values": "[]", "Types": "", diff --git a/pkg/generators/test_expected_data/mutate/delete.json b/pkg/generators/test_expected_data/mutate/delete.json new file mode 100644 index 00000000..6b5c0385 --- /dev/null +++ b/pkg/generators/test_expected_data/mutate/delete.json @@ -0,0 +1,68 @@ +{ + "pk1_ck0_col1": [ + { + "Token": "6292367497774912474", + "TokenValues": "[1]", + "Query": "DELETE FROM ks1.pk1_ck0_col1 WHERE pk0=?", + "Names": "[pk0]", + "Values": "[1]", + "Types": " bigint", + "QueryType": "4" + } + ], + "pk1_ck1_col1": [ + { + "Token": "6292367497774912474", + "TokenValues": "[1]", + "Query": "DELETE FROM ks1.pk1_ck1_col1 WHERE pk0=? AND ck0\u003e=? AND ck0\u003c=?", + "Names": "[pk0 ck0 ck0]", + "Values": "[1 1969-12-31 1969-12-31]", + "Types": " bigint date date", + "QueryType": "4" + } + ], + "pk1_ck1_col1cr": [ + { + "Token": "6292367497774912474", + "TokenValues": "[1]", + "Query": "DELETE FROM ks1.pk1_ck1_col1cr WHERE pk0=? AND ck0\u003e=? AND ck0\u003c=?", + "Names": "[pk0 ck0 ck0]", + "Values": "[1 1969-12-31 1969-12-31]", + "Types": " bigint date date", + "QueryType": "4" + } + ], + "pk3_ck3_col3cr": [ + { + "Token": "4281341066124197361", + "TokenValues": "[1 1.110223e-16 1.1.1.1]", + "Query": "DELETE FROM ks1.pk3_ck3_col3cr WHERE pk0=? AND pk1=? AND pk2=? AND ck0\u003e=? AND ck0\u003c=?", + "Names": "[pk0 pk1 pk2 ck0 ck0]", + "Values": "[1 1.110223e-16 1.1.1.1 01 00]", + "Types": " bigint float inet ascii ascii", + "QueryType": "4" + } + ], + "pk3_ck3_col5": [ + { + "Token": "4281341066124197361", + "TokenValues": "[1 1.110223e-16 1.1.1.1]", + "Query": "DELETE FROM ks1.pk3_ck3_col5 WHERE pk0=? AND pk1=? AND pk2=? AND ck0\u003e=? AND ck0\u003c=?", + "Names": "[pk0 pk1 pk2 ck0 ck0]", + "Values": "[1 1.110223e-16 1.1.1.1 01 00]", + "Types": " bigint float inet ascii ascii", + "QueryType": "4" + } + ], + "pkAll_ckAll_colAll": [ + { + "Token": "14089702817938295799", + "TokenValues": "[01 1 3030 false 1969-12-31 0.001 1.1102230246251565e-16 1.110223e-16 1.1.1.1 0 0 00 1969-12-31 00:00:01 +0000 UTC 00000001-0000-1000-8000-3132372e302e 0 00000001-0000-1000-8000-3132372e302e 00 1 -86399000000000]", + "Query": "DELETE FROM ks1.pkAll_ckAll_colAll WHERE pk0=? AND pk1=? AND pk2=? AND pk3=? AND pk4=? AND pk5=? AND pk6=? AND pk7=? AND pk8=? AND pk9=? AND pk10=? AND pk11=? AND pk12=? AND pk13=? AND pk14=? AND pk15=? AND pk16=? AND pk17=? AND pk18=? AND ck0\u003e=? AND ck0\u003c=?", + "Names": "[pk0 pk1 pk2 pk3 pk4 pk5 pk6 pk7 pk8 pk9 pk10 pk11 pk12 pk13 pk14 pk15 pk16 pk17 pk18 ck0 ck0]", + "Values": "[01 1 3030 false 1969-12-31 0.001 1.1102230246251565e-16 1.110223e-16 1.1.1.1 0 0 00 1969-12-31 00:00:01 +0000 UTC 00000001-0000-1000-8000-3132372e302e 0 00000001-0000-1000-8000-3132372e302e 00 1 -86399000000000 01 00]", + "Types": " ascii bigint blob boolean date decimal double float inet int smallint text timestamp timeuuid tinyint uuid varchar varint time ascii ascii", + "QueryType": "4" + } + ] +} \ No newline at end of file diff --git a/pkg/generators/test_expected_data/mutate/insert.json b/pkg/generators/test_expected_data/mutate/insert.json new file mode 100644 index 00000000..d6d7d2da --- /dev/null +++ b/pkg/generators/test_expected_data/mutate/insert.json @@ -0,0 +1,112 @@ +{ + "pk1_ck0_col0": [ + { + "Token": "6292367497774912474", + "TokenValues": "[1]", + "Query": "INSERT INTO ks1.pk1_ck0_col0 (pk0) VALUES (?)", + "Names": "[pk0]", + "Values": "[1]", + "Types": " bigint", + "QueryType": "5" + } + ], + "pk1_ck0_col0_lwt": [ + { + "Token": "6292367497774912474", + "TokenValues": "[1]", + "Query": "INSERT INTO ks1.pk1_ck0_col0_lwt (pk0) VALUES (?) IF NOT EXISTS", + "Names": "[pk0]", + "Values": "[1]", + "Types": " bigint", + "QueryType": "5" + } + ], + "pk1_ck1_col1": [ + { + "Token": "6292367497774912474", + "TokenValues": "[1]", + "Query": "INSERT INTO ks1.pk1_ck1_col1 (pk0,ck0,col0) VALUES (?,?,?)", + "Names": "[pk0 ck0 col0]", + "Values": "[1 1969-12-31 1969-12-31]", + "Types": " bigint date date", + "QueryType": "5" + } + ], + "pk1_ck1_col1_lwt": [ + { + "Token": "6292367497774912474", + "TokenValues": "[1]", + "Query": "INSERT INTO ks1.pk1_ck1_col1_lwt (pk0,ck0,col0) VALUES (?,?,?) IF NOT EXISTS", + "Names": "[pk0 ck0 col0]", + "Values": "[1 1969-12-31 1969-12-31]", + "Types": " bigint date date", + "QueryType": "5" + } + ], + "pk1_ck1_col1cr": [ + { + "Token": "6292367497774912474", + "TokenValues": "[1]", + "Query": "INSERT INTO ks1.pk1_ck1_col1cr (pk0,ck0,col0) VALUES (?,?,?)", + "Names": "[pk0 ck0 col0]", + "Values": "[1 1969-12-31 1]", + "Types": " bigint date counter", + "QueryType": "5" + } + ], + "pk1_ck1_col1cr_lwt": [ + { + "Token": "6292367497774912474", + "TokenValues": "[1]", + "Query": "INSERT INTO ks1.pk1_ck1_col1cr_lwt (pk0,ck0,col0) VALUES (?,?,?) IF NOT EXISTS", + "Names": "[pk0 ck0 col0]", + "Values": "[1 1969-12-31 1]", + "Types": " bigint date counter", + "QueryType": "5" + } + ], + "pk3_ck3_col3cr": [ + { + "Token": "4281341066124197361", + "TokenValues": "[1 1.110223e-16 1.1.1.1]", + "Query": "INSERT INTO ks1.pk3_ck3_col3cr (pk0,pk1,pk2,ck0,ck1,ck2,col0,col1,col2) VALUES (?,?,?,?,?,?,?,?,?)", + "Names": "[pk0 pk1 pk2 ck0 ck1 ck2 col0 col1 col2]", + "Values": "[1 1.110223e-16 1.1.1.1 01 1969-12-31 0.001 1 1 1]", + "Types": " bigint float inet ascii date decimal counter counter counter", + "QueryType": "5" + } + ], + "pk3_ck3_col5": [ + { + "Token": "4281341066124197361", + "TokenValues": "[1 1.110223e-16 1.1.1.1]", + "Query": "INSERT INTO ks1.pk3_ck3_col5 (pk0,pk1,pk2,ck0,ck1,ck2,col0,col1,col2,col3,col4) VALUES (?,?,?,?,?,?,?,?,?,?,?)", + "Names": "[pk0 pk1 pk2 ck0 ck1 ck2 col0 col1 col2 col3 col4]", + "Values": "[1 1.110223e-16 1.1.1.1 01 1969-12-31 0.001 00 1969-12-31 3030 1 1.110223e-16]", + "Types": " bigint float inet ascii date decimal ascii date blob bigint float", + "QueryType": "5" + } + ], + "pkAll_ckAll_colAll": [ + { + "Token": "14089702817938295799", + "TokenValues": "[01 1 3030 false 1969-12-31 0.001 1.1102230246251565e-16 1.110223e-16 1.1.1.1 0 0 00 1969-12-31 00:00:01 +0000 UTC 00000001-0000-1000-8000-3132372e302e 0 00000001-0000-1000-8000-3132372e302e 00 1 -86399000000000]", + "Query": "INSERT INTO ks1.pkAll_ckAll_colAll (pk0,pk1,pk2,pk3,pk4,pk5,pk6,pk7,pk8,pk9,pk10,pk11,pk12,pk13,pk14,pk15,pk16,pk17,pk18,ck0,ck1,ck2,ck3,ck4,ck5,ck6,ck7,ck8,ck9,ck10,ck11,ck12,ck13,ck14,ck15,ck16,ck17,ck18,col0,col1,col2,col3,col4,col5,col6,col7,col8,col9,col10,col11,col12,col13,col14,col15,col16,col17,col18,col19) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)", + "Names": "[pk0 pk1 pk2 pk3 pk4 pk5 pk6 pk7 pk8 pk9 pk10 pk11 pk12 pk13 pk14 pk15 pk16 pk17 pk18 ck0 ck1 ck2 ck3 ck4 ck5 ck6 ck7 ck8 ck9 ck10 ck11 ck12 ck13 ck14 ck15 ck16 ck17 ck18 col0 col1 col2 col3 col4 col5 col6 col7 col8 col9 col10 col11 col12 col13 col14 col15 col16 col17 col18 col19]", + "Values": "[01 1 3030 false 1969-12-31 0.001 1.1102230246251565e-16 1.110223e-16 1.1.1.1 0 0 00 1969-12-31 00:00:01 +0000 UTC 00000001-0000-1000-8000-3132372e302e 0 00000001-0000-1000-8000-3132372e302e 00 1 -86399000000000 01 1 3030 false 1969-12-31 0.001 1.1102230246251565e-16 1.110223e-16 1.1.1.1 0 0 00 1969-12-31 00:00:01 +0000 UTC 00000001-0000-1000-8000-3132372e302e 0 00000001-0000-1000-8000-3132372e302e 00 1 -86399000000000 1m0s 01 1 3030 false 1969-12-31 0.001 1.1102230246251565e-16 1.110223e-16 1.1.1.1 0 0 00 1969-12-31 00:00:01 +0000 UTC 00000001-0000-1000-8000-3132372e302e 0 00000001-0000-1000-8000-3132372e302e 00 1 -86399000000000]", + "Types": " ascii bigint blob boolean date decimal double float inet int smallint text timestamp timeuuid tinyint uuid varchar varint time ascii bigint blob boolean date decimal double float inet int smallint text timestamp timeuuid tinyint uuid varchar varint time duration ascii bigint blob boolean date decimal double float inet int smallint text timestamp timeuuid tinyint uuid varchar varint time", + "QueryType": "5" + } + ], + "pkAll_ckAll_colAll_lwt": [ + { + "Token": "14089702817938295799", + "TokenValues": "[01 1 3030 false 1969-12-31 0.001 1.1102230246251565e-16 1.110223e-16 1.1.1.1 0 0 00 1969-12-31 00:00:01 +0000 UTC 00000001-0000-1000-8000-3132372e302e 0 00000001-0000-1000-8000-3132372e302e 00 1 -86399000000000]", + "Query": "INSERT INTO ks1.pkAll_ckAll_colAll_lwt (pk0,pk1,pk2,pk3,pk4,pk5,pk6,pk7,pk8,pk9,pk10,pk11,pk12,pk13,pk14,pk15,pk16,pk17,pk18,ck0,ck1,ck2,ck3,ck4,ck5,ck6,ck7,ck8,ck9,ck10,ck11,ck12,ck13,ck14,ck15,ck16,ck17,ck18,col0,col1,col2,col3,col4,col5,col6,col7,col8,col9,col10,col11,col12,col13,col14,col15,col16,col17,col18,col19) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) IF NOT EXISTS", + "Names": "[pk0 pk1 pk2 pk3 pk4 pk5 pk6 pk7 pk8 pk9 pk10 pk11 pk12 pk13 pk14 pk15 pk16 pk17 pk18 ck0 ck1 ck2 ck3 ck4 ck5 ck6 ck7 ck8 ck9 ck10 ck11 ck12 ck13 ck14 ck15 ck16 ck17 ck18 col0 col1 col2 col3 col4 col5 col6 col7 col8 col9 col10 col11 col12 col13 col14 col15 col16 col17 col18 col19]", + "Values": "[01 1 3030 false 1969-12-31 0.001 1.1102230246251565e-16 1.110223e-16 1.1.1.1 0 0 00 1969-12-31 00:00:01 +0000 UTC 00000001-0000-1000-8000-3132372e302e 0 00000001-0000-1000-8000-3132372e302e 00 1 -86399000000000 01 1 3030 false 1969-12-31 0.001 1.1102230246251565e-16 1.110223e-16 1.1.1.1 0 0 00 1969-12-31 00:00:01 +0000 UTC 00000001-0000-1000-8000-3132372e302e 0 00000001-0000-1000-8000-3132372e302e 00 1 -86399000000000 1m0s 01 1 3030 false 1969-12-31 0.001 1.1102230246251565e-16 1.110223e-16 1.1.1.1 0 0 00 1969-12-31 00:00:01 +0000 UTC 00000001-0000-1000-8000-3132372e302e 0 00000001-0000-1000-8000-3132372e302e 00 1 -86399000000000]", + "Types": " ascii bigint blob boolean date decimal double float inet int smallint text timestamp timeuuid tinyint uuid varchar varint time ascii bigint blob boolean date decimal double float inet int smallint text timestamp timeuuid tinyint uuid varchar varint time duration ascii bigint blob boolean date decimal double float inet int smallint text timestamp timeuuid tinyint uuid varchar varint time", + "QueryType": "5" + } + ] +} \ No newline at end of file diff --git a/pkg/generators/test_expected_data/mutate/insert_j.json b/pkg/generators/test_expected_data/mutate/insert_j.json index 96556d12..5b760919 100644 --- a/pkg/generators/test_expected_data/mutate/insert_j.json +++ b/pkg/generators/test_expected_data/mutate/insert_j.json @@ -38,7 +38,7 @@ "TokenValues": "[01 1 3030 false 1969-12-31 0.001 1.1102230246251565e-16 1.110223e-16 1.1.1.1 0 0 00 1969-12-31 00:00:01 +0000 UTC 00000001-0000-1000-8000-3132372e302e 0 00000001-0000-1000-8000-3132372e302e 00 1 -86399000000000]", "Query": "INSERT INTO ks1.pkAll_ckAll_colAll JSON ?", "Names": "[]", - "Values": "[{\"ck0\":\"01\",\"ck1\":1,\"ck10\":0,\"ck11\":\"00\",\"ck12\":-86399000000000,\"ck13\":\"1969-12-31T00:00:01Z\",\"ck14\":\"00000001-0000-1000-8000-3132372e302e\",\"ck15\":0,\"ck16\":\"00000001-0000-1000-8000-3132372e302e\",\"ck17\":\"00\",\"ck18\":1,\"ck19\":-86399000000000,\"ck2\":\"0x3030\",\"ck3\":false,\"ck4\":\"1969-12-31\",\"ck5\":\"0.001\",\"ck6\":1.1102230246251565e-16,\"ck7\":1.110223e-16,\"ck8\":\"1.1.1.1\",\"ck9\":0,\"col0\":\"1m0s\",\"col1\":\"01\",\"col10\":0,\"col11\":0,\"col12\":\"00\",\"col13\":-86399000000000,\"col14\":\"1969-12-31T00:00:01Z\",\"col15\":\"00000001-0000-1000-8000-3132372e302e\",\"col16\":0,\"col17\":\"00000001-0000-1000-8000-3132372e302e\",\"col18\":\"00\",\"col19\":1,\"col2\":1,\"col20\":-86399000000000,\"col3\":\"0x3030\",\"col4\":false,\"col5\":\"1969-12-31\",\"col6\":\"0.001\",\"col7\":1.1102230246251565e-16,\"col8\":1.110223e-16,\"col9\":\"1.1.1.1\",\"pk0\":\"01\",\"pk1\":1,\"pk10\":0,\"pk11\":\"00\",\"pk12\":\"1969-12-31T00:00:01Z\",\"pk13\":\"00000001-0000-1000-8000-3132372e302e\",\"pk14\":0,\"pk15\":\"00000001-0000-1000-8000-3132372e302e\",\"pk16\":\"00\",\"pk17\":1,\"pk18\":-86399000000000,\"pk2\":\"0x3030\",\"pk3\":false,\"pk4\":\"1969-12-31\",\"pk5\":\"0.001\",\"pk6\":1.1102230246251565e-16,\"pk7\":1.110223e-16,\"pk8\":\"1.1.1.1\",\"pk9\":0}]", + "Values": "[{\"ck0\":\"01\",\"ck1\":1,\"ck10\":0,\"ck11\":\"00\",\"ck12\":\"1969-12-31T00:00:01Z\",\"ck13\":\"00000001-0000-1000-8000-3132372e302e\",\"ck14\":0,\"ck15\":\"00000001-0000-1000-8000-3132372e302e\",\"ck16\":\"00\",\"ck17\":1,\"ck18\":-86399000000000,\"ck2\":\"0x3030\",\"ck3\":false,\"ck4\":\"1969-12-31\",\"ck5\":\"0.001\",\"ck6\":1.1102230246251565e-16,\"ck7\":1.110223e-16,\"ck8\":\"1.1.1.1\",\"ck9\":0,\"col0\":\"1m0s\",\"col1\":\"01\",\"col10\":0,\"col11\":0,\"col12\":\"00\",\"col13\":\"1969-12-31T00:00:01Z\",\"col14\":\"00000001-0000-1000-8000-3132372e302e\",\"col15\":0,\"col16\":\"00000001-0000-1000-8000-3132372e302e\",\"col17\":\"00\",\"col18\":1,\"col19\":-86399000000000,\"col2\":1,\"col3\":\"0x3030\",\"col4\":false,\"col5\":\"1969-12-31\",\"col6\":\"0.001\",\"col7\":1.1102230246251565e-16,\"col8\":1.110223e-16,\"col9\":\"1.1.1.1\",\"pk0\":\"01\",\"pk1\":1,\"pk10\":0,\"pk11\":\"00\",\"pk12\":\"1969-12-31T00:00:01Z\",\"pk13\":\"00000001-0000-1000-8000-3132372e302e\",\"pk14\":0,\"pk15\":\"00000001-0000-1000-8000-3132372e302e\",\"pk16\":\"00\",\"pk17\":1,\"pk18\":-86399000000000,\"pk2\":\"0x3030\",\"pk3\":false,\"pk4\":\"1969-12-31\",\"pk5\":\"0.001\",\"pk6\":1.1102230246251565e-16,\"pk7\":1.110223e-16,\"pk8\":\"1.1.1.1\",\"pk9\":0}]", "Types": " text", "QueryType": "5" } diff --git a/pkg/generators/test_expected_data/mutate/update.json b/pkg/generators/test_expected_data/mutate/update.json new file mode 100644 index 00000000..ca1afcbd --- /dev/null +++ b/pkg/generators/test_expected_data/mutate/update.json @@ -0,0 +1,68 @@ +{ + "pk1_ck0_col0": [ + { + "Token": "6292367497774912474", + "TokenValues": "[1]", + "Query": "UPDATE ks1.pk1_ck0_col0 SET WHERE pk0=?", + "Names": "[pk0]", + "Values": "[1]", + "Types": " bigint", + "QueryType": "6" + } + ], + "pk1_ck1_col1": [ + { + "Token": "6292367497774912474", + "TokenValues": "[1]", + "Query": "UPDATE ks1.pk1_ck1_col1 SET col0=? WHERE pk0=? AND ck0=?", + "Names": "[col0 pk0 ck0]", + "Values": "[1969-12-31 1 1969-12-31]", + "Types": " date bigint date", + "QueryType": "6" + } + ], + "pk1_ck1_col1cr": [ + { + "Token": "6292367497774912474", + "TokenValues": "[1]", + "Query": "UPDATE ks1.pk1_ck1_col1cr SET col0=col0+1 WHERE pk0=? AND ck0=?", + "Names": "[pk0 ck0]", + "Values": "[1 1969-12-31]", + "Types": " bigint date", + "QueryType": "6" + } + ], + "pk3_ck3_col3cr": [ + { + "Token": "4281341066124197361", + "TokenValues": "[1 1.110223e-16 1.1.1.1]", + "Query": "UPDATE ks1.pk3_ck3_col3cr SET col0=col0+1,col1=col1+1,col2=col2+1 WHERE pk0=? AND pk1=? AND pk2=? AND ck0=? AND ck1=? AND ck2=?", + "Names": "[pk0 pk1 pk2 ck0 ck1 ck2]", + "Values": "[1 1.110223e-16 1.1.1.1 01 1969-12-31 0.001]", + "Types": " bigint float inet ascii date decimal", + "QueryType": "6" + } + ], + "pk3_ck3_col5": [ + { + "Token": "4281341066124197361", + "TokenValues": "[1 1.110223e-16 1.1.1.1]", + "Query": "UPDATE ks1.pk3_ck3_col5 SET col0=?,col1=?,col2=?,col3=?,col4=? WHERE pk0=? AND pk1=? AND pk2=? AND ck0=? AND ck1=? AND ck2=?", + "Names": "[col0 col1 col2 col3 col4 pk0 pk1 pk2 ck0 ck1 ck2]", + "Values": "[01 1969-12-31 3030 1 1.110223e-16 1 1.110223e-16 1.1.1.1 00 1969-12-31 0.001]", + "Types": " ascii date blob bigint float bigint float inet ascii date decimal", + "QueryType": "6" + } + ], + "pkAll_ckAll_colAll": [ + { + "Token": "14089702817938295799", + "TokenValues": "[01 1 3030 false 1969-12-31 0.001 1.1102230246251565e-16 1.110223e-16 1.1.1.1 0 0 00 1969-12-31 00:00:01 +0000 UTC 00000001-0000-1000-8000-3132372e302e 0 00000001-0000-1000-8000-3132372e302e 00 1 -86399000000000]", + "Query": "UPDATE ks1.pkAll_ckAll_colAll SET col0=?,col1=?,col2=?,col3=?,col4=?,col5=?,col6=?,col7=?,col8=?,col9=?,col10=?,col11=?,col12=?,col13=?,col14=?,col15=?,col16=?,col17=?,col18=?,col19=? WHERE pk0=? AND pk1=? AND pk2=? AND pk3=? AND pk4=? AND pk5=? AND pk6=? AND pk7=? AND pk8=? AND pk9=? AND pk10=? AND pk11=? AND pk12=? AND pk13=? AND pk14=? AND pk15=? AND pk16=? AND pk17=? AND pk18=? AND ck0=? AND ck1=? AND ck2=? AND ck3=? AND ck4=? AND ck5=? AND ck6=? AND ck7=? AND ck8=? AND ck9=? AND ck10=? AND ck11=? AND ck12=? AND ck13=? AND ck14=? AND ck15=? AND ck16=? AND ck17=? AND ck18=?", + "Names": "[col0 col1 col2 col3 col4 col5 col6 col7 col8 col9 col10 col11 col12 col13 col14 col15 col16 col17 col18 col19 pk0 pk1 pk2 pk3 pk4 pk5 pk6 pk7 pk8 pk9 pk10 pk11 pk12 pk13 pk14 pk15 pk16 pk17 pk18 ck0 ck1 ck2 ck3 ck4 ck5 ck6 ck7 ck8 ck9 ck10 ck11 ck12 ck13 ck14 ck15 ck16 ck17 ck18]", + "Values": "[1m0s 01 1 3030 false 1969-12-31 0.001 1.1102230246251565e-16 1.110223e-16 1.1.1.1 0 0 00 1969-12-31 00:00:01 +0000 UTC 00000001-0000-1000-8000-3132372e302e 0 00000001-0000-1000-8000-3132372e302e 00 1 -86399000000000 01 1 3030 false 1969-12-31 0.001 1.1102230246251565e-16 1.110223e-16 1.1.1.1 0 0 00 1969-12-31 00:00:01 +0000 UTC 00000001-0000-1000-8000-3132372e302e 0 00000001-0000-1000-8000-3132372e302e 00 1 -86399000000000 01 1 3030 false 1969-12-31 0.001 1.1102230246251565e-16 1.110223e-16 1.1.1.1 0 0 00 1969-12-31 00:00:01 +0000 UTC 00000001-0000-1000-8000-3132372e302e 0 00000001-0000-1000-8000-3132372e302e 00 1 -86399000000000]", + "Types": " duration ascii bigint blob boolean date decimal double float inet int smallint text timestamp timeuuid tinyint uuid varchar varint time ascii bigint blob boolean date decimal double float inet int smallint text timestamp timeuuid tinyint uuid varchar varint time ascii bigint blob boolean date decimal double float inet int smallint text timestamp timeuuid tinyint uuid varchar varint time", + "QueryType": "6" + } + ] +} \ No newline at end of file