|
30 | 30 | import com.linkedin.hoptimator.View; |
31 | 31 | import com.linkedin.hoptimator.jdbc.ddl.HoptimatorDdlParserImpl; |
32 | 32 | import com.linkedin.hoptimator.jdbc.ddl.SqlCreateMaterializedView; |
| 33 | +import com.linkedin.hoptimator.jdbc.ddl.SqlCreateTable; |
33 | 34 | import com.linkedin.hoptimator.jdbc.ddl.SqlCreateTrigger; |
34 | 35 | import com.linkedin.hoptimator.util.ArrayTable; |
35 | 36 | import com.linkedin.hoptimator.jdbc.ddl.SqlDropTrigger; |
|
70 | 71 | import org.apache.calcite.sql.SqlLiteral; |
71 | 72 | import org.apache.calcite.sql.SqlNode; |
72 | 73 | import org.apache.calcite.sql.ddl.SqlColumnDeclaration; |
73 | | -import org.apache.calcite.sql.ddl.SqlCreateTable; |
74 | 74 | import org.apache.calcite.sql.ddl.SqlCreateView; |
75 | 75 | import org.apache.calcite.sql.ddl.SqlDropMaterializedView; |
76 | 76 | import org.apache.calcite.sql.ddl.SqlDropObject; |
@@ -461,7 +461,9 @@ public void execute(SqlCreateTable create, CalcitePrepare.Context context) { |
461 | 461 | List<String> tablePath = new ArrayList<>(schemaPath); |
462 | 462 | tablePath.add(tableName); |
463 | 463 |
|
464 | | - Source source = new Source(database, tablePath, Collections.emptyMap()); |
| 464 | + Map<String, String> tableOptions = HoptimatorDdlUtils.options(create.options); |
| 465 | + |
| 466 | + Source source = new Source(database, tablePath, tableOptions); |
465 | 467 | logger.info("Validating new table {}", source); |
466 | 468 | ValidationService.validateOrThrow(source); |
467 | 469 | deployers = DeploymentService.deployers(source, connection); |
|
0 commit comments