This is an automated email from the ASF dual-hosted git repository. hucong pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
commit 2482ee4a90c833ba408f0f8a6793d2c68ae5e5fa Merge: 8aaa7c7d029 3d8a4432fb9 Author: Cong Hu <iamhuc...@gmail.com> AuthorDate: Thu Dec 26 14:27:53 2024 +0800 Merge pull request #34158 from strongduanmu/dev-1226 Support rename table statement sql bind and split segment bind to ddl and dml package RELEASE-NOTES.md | 1 + .../column/ColumnDefinitionSegmentBinder.java | 8 +-- .../RenameTableDefinitionSegmentBinder.java} | 28 ++++----- .../{ => dml}/assign/AssignmentSegmentBinder.java | 8 +-- .../column/InsertColumnsSegmentBinder.java | 6 +- .../{ => dml}/combine/CombineSegmentBinder.java | 4 +- .../expression/ExpressionSegmentBinder.java | 20 +++---- .../type/BetweenExpressionSegmentBinder.java | 6 +- .../type/BinaryOperationExpressionBinder.java | 6 +- .../expression/type/ColumnSegmentBinder.java | 8 +-- .../type/ExistsSubqueryExpressionBinder.java | 4 +- .../type/FunctionExpressionSegmentBinder.java | 6 +- .../expression/type/InExpressionBinder.java | 6 +- .../expression/type/NotExpressionBinder.java | 6 +- .../expression/type/SubquerySegmentBinder.java | 4 +- .../segment/{ => dml}/from/TableSegmentBinder.java | 14 ++--- .../from/context/TableSegmentBinderContext.java | 2 +- .../type/FunctionTableSegmentBinderContext.java | 4 +- .../type/SimpleTableSegmentBinderContext.java | 4 +- .../from/type/DeleteMultiTableSegmentBinder.java | 6 +- .../from/type/JoinTableSegmentBinder.java | 10 ++-- .../from/type/SimpleTableSegmentBinder.java | 23 ++++++-- .../from/type/SubqueryTableSegmentBinder.java | 8 +-- .../segment/{ => dml}/lock/LockSegmentBinder.java | 6 +- .../{ => dml}/order/GroupBySegmentBinder.java | 6 +- .../{ => dml}/order/OrderBySegmentBinder.java | 6 +- .../order/item/ColumnOrderByItemSegmentBinder.java | 6 +- .../item/ExpressionOrderByItemSegmentBinder.java | 6 +- .../order/item/OrderByItemSegmentBinder.java | 4 +- .../{ => dml}/predicate/HavingSegmentBinder.java | 6 +- .../{ => dml}/predicate/WhereSegmentBinder.java | 6 +- .../projection/ProjectionsSegmentBinder.java | 16 ++--- .../type/ColumnProjectionSegmentBinder.java | 6 +- .../type/ShorthandProjectionSegmentBinder.java | 4 +- .../type/SubqueryProjectionSegmentBinder.java | 6 +- .../with/CommonTableExpressionSegmentBinder.java | 6 +- .../segment/{ => dml}/with/WithSegmentBinder.java | 6 +- .../{ => segment}/util/SubqueryTableBindUtils.java | 2 +- .../statement/SQLStatementBinderContext.java | 2 +- .../statement/ddl/AlterTableStatementBinder.java | 4 +- .../statement/ddl/CreateIndexStatementBinder.java | 6 +- .../statement/ddl/CreateTableStatementBinder.java | 6 +- .../statement/ddl/DropTableStatementBinder.java | 4 +- ...Binder.java => RenameTableStatementBinder.java} | 22 ++++--- .../statement/dml/DeleteStatementBinder.java | 10 ++-- .../statement/dml/InsertStatementBinder.java | 10 ++-- .../statement/dml/SelectStatementBinder.java | 24 ++++---- .../statement/dml/UpdateStatementBinder.java | 12 ++-- .../binder/engine/type/DDLStatementBindEngine.java | 5 ++ .../assign/AssignmentSegmentBinderTest.java | 5 +- .../type/BinaryOperationExpressionBinderTest.java | 1 + .../expression/type/ColumnSegmentBinderTest.java | 5 +- .../type/ExistsSubqueryExpressionBinderTest.java | 1 + .../type/FunctionExpressionSegmentBinderTest.java | 1 + .../expression/type/InExpressionBinderTest.java | 1 + .../expression/type/NotExpressionBinderTest.java | 1 + .../expression/type/SubquerySegmentBinderTest.java | 5 +- .../from/type/JoinTableSegmentBinderTest.java | 3 +- .../from/type/SimpleTableSegmentBinderTest.java | 3 +- .../from/type/SubqueryTableSegmentBinderTest.java | 3 +- .../segment/predicate/WhereSegmentBinderTest.java | 3 +- .../type/ShorthandProjectionSegmentBinderTest.java | 5 +- .../src/test/resources/cases/ddl/rename-table.xml | 68 ++++++++++++++++++++++ .../src/test/resources/sqls/ddl/rename-table.xml | 22 +++++++ 64 files changed, 319 insertions(+), 197 deletions(-)