/** * Parses a compound identifier with optional type. */ final public void CompoundIdentifierType(List<SqlNode> list, List<SqlNode> extendList) throws ParseException {final SqlIdentifier name; SqlDataTypeSpec type = null; boolean nullable = true; name = CompoundIdentifier(); if (jj_2_156(2)) { type = DataType(); if (!this.conformance.allowExtend()) { {if (true) throw new ParseException(RESOURCE.extendNotAllowed().str());} } if (jj_2_155(2)) { jj_consume_token(NOT); jj_consume_token(NULL); nullable = false; } else { ; } } else { ; } if (type != null) { extendList.add(name); extendList.add(type.withNullable(nullable)); } list.add(name); }
/** Creates a {@link org.apache.calcite.rel.core.TableScan} of the table * with a given name. * * <p>Throws if the table does not exist. * * <p>Returns this builder. * * @param tableNames Name of table (can optionally be qualified) */ public HiveSubQRemoveRelBuilder scan(Iterable<String> tableNames) { final List<String> names = ImmutableList.copyOf(tableNames); final RelOptTable relOptTable = relOptSchema.getTableForMember(names); if (relOptTable == null) { throw Static.RESOURCE.tableNotFound(Joiner.on(".").join(names)).ex(); } final RelNode scan = scanFactory.createScan(cluster, relOptTable); push(scan); return this; }
jj_consume_token(SET_MINUS); if (!this.conformance.isMinusAllowed()) { {if (true) throw new ParseException(RESOURCE.minusNotAllowed().str());}
jj_consume_token(SET_MINUS); if (!this.conformance.isMinusAllowed()) { {if (true) throw new ParseException(RESOURCE.minusNotAllowed().str());}
jj_consume_token(SET_MINUS); if (!this.conformance.isMinusAllowed()) { {if (true) throw new ParseException(RESOURCE.minusNotAllowed().str());}
jj_consume_token(SET_MINUS); if (!this.conformance.isMinusAllowed()) { {if (true) throw new ParseException(RESOURCE.minusNotAllowed().str());}
jj_consume_token(SET_MINUS); if (!this.conformance.isMinusAllowed()) { {if (true) throw new ParseException(RESOURCE.minusNotAllowed().str());}
jj_consume_token(SET_MINUS); if (!this.conformance.isMinusAllowed()) { {if (true) throw new ParseException(RESOURCE.minusNotAllowed().str());}
jj_consume_token(SET_MINUS); if (!this.conformance.isMinusAllowed()) { {if (true) throw new ParseException(RESOURCE.minusNotAllowed().str());}
jj_consume_token(SET_MINUS); if (!this.conformance.isMinusAllowed()) { {if (true) throw new ParseException(RESOURCE.minusNotAllowed().str());}
jj_consume_token(SET_MINUS); if (!this.conformance.isMinusAllowed()) { {if (true) throw new ParseException(RESOURCE.minusNotAllowed().str());}
jj_consume_token(NE2); if (!this.conformance.isBangEqualAllowed()) { {if (true) throw new ParseException(RESOURCE.bangEqualNotAllowed().str());}
jj_consume_token(NE2); if (!this.conformance.isBangEqualAllowed()) { {if (true) throw new ParseException(RESOURCE.bangEqualNotAllowed().str());}
jj_consume_token(NE2); if (!this.conformance.isBangEqualAllowed()) { {if (true) throw new ParseException(RESOURCE.bangEqualNotAllowed().str());}
jj_consume_token(NE2); if (!this.conformance.isBangEqualAllowed()) { {if (true) throw new ParseException(RESOURCE.bangEqualNotAllowed().str());}
/** * Parses a compound identifier with optional type. */ final public void CompoundIdentifierType(List<SqlNode> list, List<SqlNode> extendList) throws ParseException { final SqlIdentifier name; SqlDataTypeSpec type = null; boolean nullable = true; name = CompoundIdentifier(); if (jj_2_189(2)) { type = DataType(); if (!this.conformance.allowExtend()) { {if (true) throw new ParseException(RESOURCE.extendNotAllowed().str());} } if (jj_2_188(2)) { jj_consume_token(NOT); jj_consume_token(NULL); nullable = false; } else { ; } } else { ; } if (type != null) { extendList.add(name); extendList.add(type.withNullable(nullable)); } list.add(name); }
jj_consume_token(NE2); if (!this.conformance.isBangEqualAllowed()) { {if (true) throw new ParseException(RESOURCE.bangEqualNotAllowed().str());}
jj_consume_token(NE2); if (!this.conformance.isBangEqualAllowed()) { {if (true) throw new ParseException(RESOURCE.bangEqualNotAllowed().str());}
/** * Parses a compound identifier with optional type. */ final public void CompoundIdentifierType(List<SqlNode> list, List<SqlNode> extendList) throws ParseException { final SqlIdentifier name; SqlDataTypeSpec type = null; boolean nullable = true; name = CompoundIdentifier(); if (jj_2_159(2)) { type = DataType(); if (!this.conformance.allowExtend()) { {if (true) throw new ParseException(RESOURCE.extendNotAllowed().str());} } if (jj_2_158(2)) { jj_consume_token(NOT); jj_consume_token(NULL); nullable = false; } else { ; } } else { ; } if (type != null) { extendList.add(name); extendList.add(type.withNullable(nullable)); } list.add(name); }
/** * Parses a compound identifier with optional type. */ final public void CompoundIdentifierType(List<SqlNode> list, List<SqlNode> extendList) throws ParseException { final SqlIdentifier name; SqlDataTypeSpec type = null; boolean nullable = true; name = CompoundIdentifier(); if (jj_2_147(2)) { type = DataType(); if (!this.conformance.allowExtend()) { {if (true) throw new ParseException(RESOURCE.extendNotAllowed().str());} } if (jj_2_146(2)) { jj_consume_token(NOT); jj_consume_token(NULL); nullable = false; } else { ; } } else { ; } if (type != null) { extendList.add(name); extendList.add(type.withNullable(nullable)); } list.add(name); }