xtern commented on code in PR #1917:
URL: https://github.com/apache/ignite-3/pull/1917#discussion_r1162339032
##########
modules/sql-engine/src/main/java/org/apache/ignite/internal/sql/engine/prepare/IgniteSqlValidator.java:
##########
@@ -210,10 +212,12 @@ protected SqlSelect createSourceSelectForDelete(SqlDelete
call) {
final SqlNodeList selectList = new SqlNodeList(SqlParserPos.ZERO);
final SqlValidatorTable table =
getCatalogReader().getTable(((SqlIdentifier) call.getTargetTable()).names);
-
table.unwrap(IgniteTable.class).descriptor().deleteRowType((IgniteTypeFactory)
typeFactory)
- .getFieldNames().stream()
- .map(name -> new SqlIdentifier(name, SqlParserPos.ZERO))
- .forEach(selectList::add);
+ if (table != null) {
Review Comment:
Thanks, reworked a bit.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]