MCPcopy Create free account
hub / github.com/apache/calcite / isUpsert

Method isUpsert

core/src/main/java/org/apache/calcite/sql/SqlInsert.java:90–92  ·  view source on GitHub ↗

Returns whether this is an UPSERT statement. In SQL, this is represented using the UPSERT keyword rather than INSERT; in the abstract syntax tree, an UPSERT is indicated by the presence of a SqlInsertKeyword#UPSERT keyword.

()

Source from the content-addressed store, hash-verified

88 * {@code INSERT}; in the abstract syntax tree, an UPSERT is indicated by the
89 * presence of a {@link SqlInsertKeyword#UPSERT} keyword. */
90 public final boolean isUpsert() {
91 return getModifierNode(SqlInsertKeyword.UPSERT) != null;
92 }
93
94 @SuppressWarnings("assignment.type.incompatible")
95 @Override public void setOperand(int i, @Nullable SqlNode operand) {

Callers 1

unparseMethod · 0.95

Calls 1

getModifierNodeMethod · 0.95

Tested by

no test coverage detected