InsertNamespace(SqlValidatorImpl validator, SqlInsert node, SqlNode enclosingNode, SqlValidatorScope parentScope) { super(validator, node.getTargetTable(), enclosingNode, parentScope); this.node = Objects.requireNonNull(node); }
getLogicalSourceRowType(sourceRowType, insert); checkFieldCount(insert.getTargetTable(), table, source, logicalSourceRowType, logicalTargetRowType); validateAccess(insert.getTargetTable(), table, SqlAccessEnum.INSERT);
InsertNamespace(SqlValidatorImpl validator, SqlInsert node, SqlNode enclosingNode, SqlValidatorScope parentScope) { super(validator, node.getTargetTable(), enclosingNode, parentScope); this.node = Objects.requireNonNull(node); }
InsertNamespace(SqlValidatorImpl validator, SqlInsert node, SqlNode enclosingNode, SqlValidatorScope parentScope) { super(validator, node.getTargetTable(), enclosingNode, parentScope); this.node = Objects.requireNonNull(node); }
private SqlTreeNode convertInsert(SqlInsert insert) { SqlTreeNode input = convertQueryRecursive(insert.getSource()); String tableName = insert.getTargetTable().toString(); return SqlTreeNodes.sink(insert.getParserPosition(), input, tableName); }
if (sqlNode instanceof SqlInsert) { SqlInsert sqlInsert = ((SqlInsert) sqlNode); sink = sqlInsert.getTargetTable().toString(); if (sqlInsert.getSource() instanceof SqlSelect) { SqlSelect sqlSelect = (SqlSelect) sqlInsert.getSource();
if (sqlNode instanceof SqlInsert) { SqlInsert sqlInsert = ((SqlInsert) sqlNode); sink = sqlInsert.getTargetTable().toString(); if (sqlInsert.getSource() instanceof SqlSelect) { SqlSelect sqlSelect = (SqlSelect) sqlInsert.getSource();
((SqlCreateView) sqlNode).setSubQuerySql(subQuerySql); } else if (sqlNode instanceof SqlInsert) { SqlIdentifier targetTable = (SqlIdentifier) ((SqlInsert) sqlNode).getTargetTable(); sinkTables.put(targetTable.toString(), targetTable.getParserPosition()); } else if (sqlNode instanceof SqlCreateTable) {
getLogicalSourceRowType(sourceRowType, insert); checkFieldCount(insert.getTargetTable(), table, source, logicalSourceRowType, logicalTargetRowType); validateAccess(insert.getTargetTable(), table, SqlAccessEnum.INSERT);
getLogicalSourceRowType(sourceRowType, insert); checkFieldCount(insert.getTargetTable(), table, source, logicalSourceRowType, logicalTargetRowType); validateAccess(insert.getTargetTable(), table, SqlAccessEnum.INSERT);
switch (sqlKind){ case INSERT: SqlNode sqlTarget = ((SqlInsert)sqlNode).getTargetTable(); SqlNode sqlSource = ((SqlInsert)sqlNode).getSource(); sqlParseResult.addTargetTable(sqlTarget.toString());