IGNITE-15107 Support DDL functionality. - Fixes #484.
authorzstan <stanilovsky@gmail.com>
Mon, 13 Dec 2021 12:27:26 +0000 (15:27 +0300)
committerzstan <stanilovsky@gmail.com>
Mon, 13 Dec 2021 12:27:26 +0000 (15:27 +0300)
commit2443e2ab7986a8ba339e038ece635eb12b7dda3b
tree26af0f2ad602e99af59f625e998f8cae14e5355d
parentab3ea5870a7fceb103f49dc39af927a0c0022654
IGNITE-15107 Support DDL functionality. - Fixes #484.

Signed-off-by: zstan <stanilovsky@gmail.com>
74 files changed:
.idea/codeStyles/codeStyleConfig.xml
examples/src/main/java/org/apache/ignite/example/rebalance/RebalanceExample.java
examples/src/main/java/org/apache/ignite/example/sql/jdbc/SqlJdbcExample.java
examples/src/main/java/org/apache/ignite/example/table/KeyValueViewExample.java
examples/src/main/java/org/apache/ignite/example/table/RecordViewExample.java
modules/api/src/main/java/org/apache/ignite/configuration/schemas/table/TableConfigurationSchema.java
modules/api/src/main/java/org/apache/ignite/lang/ColumnNotFoundException.java [new file with mode: 0644]
modules/api/src/main/java/org/apache/ignite/lang/IndexNotFoundException.java [new file with mode: 0644]
modules/api/src/main/java/org/apache/ignite/schema/definition/builder/ColumnDefinitionBuilder.java
modules/api/src/main/java/org/apache/ignite/schema/definition/builder/HashIndexDefinitionBuilder.java
modules/api/src/main/java/org/apache/ignite/schema/definition/builder/PrimaryKeyDefinitionBuilder.java
modules/api/src/main/java/org/apache/ignite/schema/definition/builder/TableDefinitionBuilder.java
modules/api/src/main/java/org/apache/ignite/schema/modification/AlterColumnBuilder.java
modules/calcite/pom.xml
modules/calcite/src/main/codegen/config.fmpp
modules/calcite/src/main/codegen/includes/parserImpls.ftl
modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/SqlQueryProcessor.java
modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/exec/ExecutionServiceImpl.java
modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/exec/ddl/DdlCommandHandler.java [new file with mode: 0644]
modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/prepare/ddl/AbstractTableDdlCommand.java [new file with mode: 0644]
modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/prepare/ddl/AlterTableAddCommand.java [new file with mode: 0644]
modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/prepare/ddl/AlterTableDropCommand.java [new file with mode: 0644]
modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/prepare/ddl/CreateIndexCommand.java [new file with mode: 0644]
modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/prepare/ddl/CreateTableCommand.java
modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/prepare/ddl/DdlSqlToCommandConverter.java
modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/prepare/ddl/DropIndexCommand.java [new file with mode: 0644]
modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/prepare/ddl/DropTableCommand.java
modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/sql/IgniteAbstractSqlAlterTable.java [new file with mode: 0644]
modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/sql/IgniteSqlAlterTableAddColumn.java [new file with mode: 0644]
modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/sql/IgniteSqlAlterTableDropColumn.java [new file with mode: 0644]
modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/sql/IgniteSqlCreateIndex.java [new file with mode: 0644]
modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/sql/IgniteSqlCreateTableOptionEnum.java
modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/sql/IgniteSqlDropIndex.java [new file with mode: 0644]
modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/type/IgniteTypeFactory.java
modules/calcite/src/test/java/org/apache/ignite/internal/processors/query/calcite/exec/DdlWithMockedManagersTest.java [new file with mode: 0644]
modules/calcite/src/test/java/org/apache/ignite/internal/processors/query/calcite/sql/SqlDdlParserTest.java
modules/core/src/main/java/org/apache/ignite/internal/util/ArrayUtils.java
modules/core/src/main/java/org/apache/ignite/internal/util/IgniteUtils.java
modules/runner/src/integrationTest/java/org/apache/ignite/internal/calcite/AbstractBasicIntegrationTest.java
modules/runner/src/integrationTest/java/org/apache/ignite/internal/calcite/ItDataTypesTest.java
modules/runner/src/integrationTest/java/org/apache/ignite/internal/calcite/ItFunctionsTest.java
modules/runner/src/integrationTest/java/org/apache/ignite/internal/calcite/ItIndexSpoolTest.java
modules/runner/src/integrationTest/java/org/apache/ignite/internal/calcite/ItJoinTest.java
modules/runner/src/integrationTest/java/org/apache/ignite/internal/calcite/ItMetadataTest.java
modules/runner/src/integrationTest/java/org/apache/ignite/internal/calcite/ItMixedQueriesTest.java
modules/runner/src/integrationTest/java/org/apache/ignite/internal/calcite/ItOrToUnionRuleTest.java
modules/runner/src/integrationTest/java/org/apache/ignite/internal/calcite/ItProjectScanMergeRuleTest.java
modules/runner/src/integrationTest/java/org/apache/ignite/internal/calcite/ItSecondaryIndexTest.java
modules/runner/src/integrationTest/java/org/apache/ignite/internal/calcite/ItSetOpTest.java
modules/runner/src/integrationTest/java/org/apache/ignite/internal/calcite/ItSortAggregateTest.java
modules/runner/src/integrationTest/java/org/apache/ignite/internal/runner/app/AbstractSchemaChangeTest.java
modules/runner/src/integrationTest/java/org/apache/ignite/internal/runner/app/ItBaselineChangesTest.java
modules/runner/src/integrationTest/java/org/apache/ignite/internal/runner/app/ItDataSchemaSyncTest.java
modules/runner/src/integrationTest/java/org/apache/ignite/internal/runner/app/ItDynamicTableCreationTest.java
modules/runner/src/integrationTest/java/org/apache/ignite/internal/runner/app/ItIgniteNodeRestartTest.java
modules/runner/src/integrationTest/java/org/apache/ignite/internal/runner/app/ItNoThreadsLeftTest.java
modules/runner/src/integrationTest/java/org/apache/ignite/internal/runner/app/ItSchemaChangeKvViewTest.java
modules/runner/src/integrationTest/java/org/apache/ignite/internal/runner/app/ItSchemaChangeTableViewTest.java
modules/runner/src/integrationTest/java/org/apache/ignite/internal/runner/app/ItTablesApiTest.java
modules/runner/src/integrationTest/java/org/apache/ignite/internal/runner/app/ItThinClientConnectionTest.java
modules/runner/src/integrationTest/java/org/apache/ignite/internal/runner/app/PlatformTestNodeRunner.java
modules/runner/src/integrationTest/java/org/apache/ignite/internal/runner/app/jdbc/ItJdbcMetadataSelfTest.java
modules/runner/src/main/java/org/apache/ignite/internal/app/IgniteImpl.java
modules/schema/src/main/java/org/apache/ignite/internal/schema/configuration/SchemaConfigurationConverter.java
modules/schema/src/main/java/org/apache/ignite/internal/schema/definition/TableDefinitionImpl.java
modules/schema/src/main/java/org/apache/ignite/internal/schema/definition/builder/ColumnDefinitionBuilderImpl.java
modules/schema/src/main/java/org/apache/ignite/internal/schema/definition/builder/HashIndexDefinitionBuilderImpl.java
modules/schema/src/main/java/org/apache/ignite/internal/schema/definition/builder/PrimaryKeyDefinitionBuilderImpl.java
modules/schema/src/main/java/org/apache/ignite/internal/schema/definition/builder/TableDefinitionBuilderImpl.java
modules/schema/src/main/java/org/apache/ignite/internal/schema/definition/index/HashIndexDefinitionImpl.java
modules/schema/src/test/java/org/apache/ignite/internal/schema/SchemaConfigurationTest.java
modules/schema/src/test/java/org/apache/ignite/internal/schema/builder/ColumnDefinitionBuilderTest.java
modules/schema/src/test/java/org/apache/ignite/internal/schema/configuration/SchemaDescriptorConverterTest.java
modules/table/src/test/java/org/apache/ignite/internal/table/TableManagerTest.java