Skip to content

Commit b3121fb

Browse files
IGNITE-12692 SQL Calcite: Distributed table modify (disabled tests for TC debug)
1 parent 80ed975 commit b3121fb

File tree

3 files changed

+64
-24
lines changed

3 files changed

+64
-24
lines changed

modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/prepare/ddl/DdlSqlToCommandConverter.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,8 @@ private CreateTableCommand convertCreateTable(IgniteSqlCreateTable createTblNode
222222
RelDataType type = planner.convert(col.dataType);
223223
Object dflt = null;
224224

225+
System.out.println(">>>> Create table col type: " + type + " col.expression " + col.expression);
226+
225227
assert col.expression == null || col.expression instanceof SqlLiteral;
226228

227229
if (col.expression != null

modules/calcite/src/test/java/org/apache/ignite/testsuites/IgniteCalciteTestSuite.java

Lines changed: 8 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,10 @@
1717

1818
package org.apache.ignite.testsuites;
1919

20-
import org.apache.ignite.internal.processors.query.calcite.exec.LogicalRelImplementorTest;
21-
import org.apache.ignite.internal.processors.query.calcite.exec.NumericTypesPrecisionsTest;
22-
import org.apache.ignite.internal.processors.query.calcite.message.CalciteCommunicationMessageSerializationTest;
23-
import org.apache.ignite.internal.processors.query.calcite.sql.SqlCustomParserTest;
24-
import org.apache.ignite.internal.processors.query.calcite.sql.SqlReservedWordsTest;
25-
import org.apache.ignite.internal.processors.tx.SqlTransactionsIsolationTest;
26-
import org.apache.ignite.internal.processors.tx.SqlTransactionsUnsupportedModesTest;
20+
import org.apache.ignite.internal.processors.query.calcite.integration.DataTypesTest;
21+
import org.apache.ignite.internal.processors.query.calcite.integration.UserDefinedFunctionsIntegrationTest;
22+
import org.apache.ignite.internal.processors.query.calcite.integration.UserDefinedFunctionsIntegrationTransactionalTest;
23+
import org.apache.ignite.internal.processors.query.calcite.jdbc.JdbcQueryTest;
2724
import org.junit.runner.RunWith;
2825
import org.junit.runners.Suite;
2926

@@ -32,23 +29,10 @@
3229
*/
3330
@RunWith(Suite.class)
3431
@Suite.SuiteClasses({
35-
PlannerTestSuite.class,
36-
ExecutionTestSuite.class,
37-
IntegrationTestSuite.class,
38-
UtilTestSuite.class,
39-
JdbcTestSuite.class,
40-
41-
SqlCustomParserTest.class,
42-
SqlReservedWordsTest.class,
43-
LogicalRelImplementorTest.class,
44-
45-
ScriptTestSuite.class,
46-
CalciteCommunicationMessageSerializationTest.class,
47-
48-
NumericTypesPrecisionsTest.class,
49-
50-
SqlTransactionsIsolationTest.class,
51-
SqlTransactionsUnsupportedModesTest.class,
32+
DataTypesTest.class,
33+
UserDefinedFunctionsIntegrationTest.class,
34+
UserDefinedFunctionsIntegrationTransactionalTest.class,
35+
JdbcQueryTest.class,
5236
})
5337
public class IgniteCalciteTestSuite {
5438
}
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one or more
3+
* contributor license agreements. See the NOTICE file distributed with
4+
* this work for additional information regarding copyright ownership.
5+
* The ASF licenses this file to You under the Apache License, Version 2.0
6+
* (the "License"); you may not use this file except in compliance with
7+
* the License. You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
17+
18+
package org.apache.ignite.testsuites;
19+
20+
import org.apache.ignite.internal.processors.query.calcite.exec.LogicalRelImplementorTest;
21+
import org.apache.ignite.internal.processors.query.calcite.exec.NumericTypesPrecisionsTest;
22+
import org.apache.ignite.internal.processors.query.calcite.message.CalciteCommunicationMessageSerializationTest;
23+
import org.apache.ignite.internal.processors.query.calcite.sql.SqlCustomParserTest;
24+
import org.apache.ignite.internal.processors.query.calcite.sql.SqlReservedWordsTest;
25+
import org.apache.ignite.internal.processors.tx.SqlTransactionsIsolationTest;
26+
import org.apache.ignite.internal.processors.tx.SqlTransactionsUnsupportedModesTest;
27+
import org.junit.runner.RunWith;
28+
import org.junit.runners.Suite;
29+
30+
/**
31+
* Calcite tests.
32+
*/
33+
@RunWith(Suite.class)
34+
@Suite.SuiteClasses({
35+
PlannerTestSuite.class,
36+
ExecutionTestSuite.class,
37+
IntegrationTestSuite.class,
38+
UtilTestSuite.class,
39+
JdbcTestSuite.class,
40+
41+
SqlCustomParserTest.class,
42+
SqlReservedWordsTest.class,
43+
LogicalRelImplementorTest.class,
44+
45+
ScriptTestSuite.class,
46+
CalciteCommunicationMessageSerializationTest.class,
47+
48+
NumericTypesPrecisionsTest.class,
49+
50+
SqlTransactionsIsolationTest.class,
51+
SqlTransactionsUnsupportedModesTest.class,
52+
})
53+
public class IgniteCalciteTestSuite1 {
54+
}

0 commit comments

Comments
 (0)