congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
CalciteResource
Code IndexAdd Tabnine to your IDE (free)

How to use
CalciteResource
in
org.apache.calcite.runtime

Best Java code snippets using org.apache.calcite.runtime.CalciteResource (Showing top 20 results out of 315)

origin: apache/storm

jj_consume_token(NE2);
 if (!this.conformance.isBangEqualAllowed()) {
   {if (true) throw new ParseException(RESOURCE.bangEqualNotAllowed().str());}
origin: apache/storm

RESOURCE.identifierTooLong(id, this.identifierMaxLength));}
origin: apache/storm

} catch (NumberFormatException ex) {
  {if (true) throw SqlUtil.newContextException(getPos(),
    RESOURCE.illegalBinaryString(token.image));}
  } catch (NumberFormatException ex) {
    {if (true) throw SqlUtil.newContextException(getPos(),
      RESOURCE.illegalBinaryString(token.image));}
} catch (java.nio.charset.UnsupportedCharsetException e) {
  {if (true) throw SqlUtil.newContextException(getPos(),
    RESOURCE.unknownCharacterSet(charSet));}
  } catch (java.nio.charset.UnsupportedCharsetException e) {
    {if (true) throw SqlUtil.newContextException(getPos(),
      RESOURCE.unknownCharacterSet(charSet));}
  if (unicodeEscapeChar == 0) {
    {if (true) throw SqlUtil.newContextException(getPos(),
      RESOURCE.unicodeEscapeUnexpected());}
origin: apache/storm

     RESOURCE.illegalRowExpression());}
       RESOURCE.illegalMinusDate());}
} else {
origin: apache/storm

void checkNonQueryExpression(ExprContext exprContext) throws ParseException {
 switch (exprContext) {
 case ACCEPT_QUERY:
   throw SqlUtil.newContextException(getPos(),
     RESOURCE.illegalNonQueryExpression());
 }
}
origin: apache/storm

void checkQueryExpression(ExprContext exprContext) throws ParseException {
 switch (exprContext) {
 case ACCEPT_NON_QUERY:
 case ACCEPT_SUB_QUERY:
 case ACCEPT_CURSOR:
   throw SqlUtil.newContextException(getPos(),
     RESOURCE.illegalQueryExpression());
 }
}
origin: apache/storm

/**
 * Parses a CURSOR(query) expression.  The parser allows these
 * anywhere, but the validator restricts them to appear only as
 * arguments to table functions.
 */
 final public SqlNode CursorExpression(ExprContext exprContext) throws ParseException {
  final SqlNode e;
  final Span s;
  jj_consume_token(CURSOR);
    s = span();
    if (exprContext != ExprContext.ACCEPT_ALL
        && exprContext != ExprContext.ACCEPT_CURSOR) {
      {if (true) throw SqlUtil.newContextException(s.end(this),
        RESOURCE.illegalCursorExpression());}
    }
  e = Expression(ExprContext.ACCEPT_QUERY);
    {if (true) return SqlStdOperatorTable.CURSOR.createCall(s.end(e), e);}
  throw new Error("Missing return statement in function");
 }

origin: apache/storm

{if (true) throw SqlUtil.newContextException(s.pos(), RESOURCE.illegalOrderBy());}
origin: apache/storm

e2 = TableRef2(true);
  if (!this.conformance.isApplyAllowed()) {
    {if (true) throw new ParseException(RESOURCE.applyNotAllowed().str());}
e2 = TableRef2(true);
  if (!this.conformance.isApplyAllowed()) {
    {if (true) throw new ParseException(RESOURCE.applyNotAllowed().str());}
origin: apache/storm

if (null == flag && null == trimChars) {
  {if (true) throw SqlUtil.newContextException(getPos(),
    RESOURCE.illegalFromEmpty());}
origin: apache/storm

jj_consume_token(NE2);
 if (!this.conformance.isBangEqualAllowed()) {
   {if (true) throw new ParseException(RESOURCE.bangEqualNotAllowed().str());}
jj_consume_token(PERCENT_REMAINDER);
 if (!this.conformance.isPercentRemainderAllowed()) {
   {if (true) throw new ParseException(RESOURCE.percentRemainderNotAllowed().str());}
origin: apache/storm

     RESOURCE.illegalRowExpression());}
       RESOURCE.illegalMinusDate());}
} else {
origin: apache/storm

void checkNonQueryExpression(ExprContext exprContext) throws ParseException {
 switch (exprContext) {
 case ACCEPT_QUERY:
   throw SqlUtil.newContextException(getPos(),
     RESOURCE.illegalNonQueryExpression());
 }
}
origin: apache/storm

void checkQueryExpression(ExprContext exprContext) throws ParseException {
 switch (exprContext) {
 case ACCEPT_NON_QUERY:
 case ACCEPT_SUB_QUERY:
 case ACCEPT_CURSOR:
   throw SqlUtil.newContextException(getPos(),
     RESOURCE.illegalQueryExpression());
 }
}
origin: apache/storm

/**
 * Parses a CURSOR(query) expression.  The parser allows these
 * anywhere, but the validator restricts them to appear only as
 * arguments to table functions.
 */
 final public SqlNode CursorExpression(ExprContext exprContext) throws ParseException {
  final SqlNode e;
  final Span s;
  jj_consume_token(CURSOR);
    s = span();
    if (exprContext != ExprContext.ACCEPT_ALL
        && exprContext != ExprContext.ACCEPT_CURSOR) {
      {if (true) throw SqlUtil.newContextException(s.end(this),
        RESOURCE.illegalCursorExpression());}
    }
  e = Expression(ExprContext.ACCEPT_QUERY);
    {if (true) return SqlStdOperatorTable.CURSOR.createCall(s.end(e), e);}
  throw new Error("Missing return statement in function");
 }

origin: apache/storm

{if (true) throw SqlUtil.newContextException(s.pos(), RESOURCE.illegalOrderBy());}
origin: apache/storm

e2 = TableRef2(true);
  if (!this.conformance.isApplyAllowed()) {
    {if (true) throw new ParseException(RESOURCE.applyNotAllowed().str());}
e2 = TableRef2(true);
  if (!this.conformance.isApplyAllowed()) {
    {if (true) throw new ParseException(RESOURCE.applyNotAllowed().str());}
origin: apache/storm

if (null == flag && null == trimChars) {
  {if (true) throw SqlUtil.newContextException(getPos(),
    RESOURCE.illegalFromEmpty());}
origin: apache/storm

jj_consume_token(NE2);
 if (!this.conformance.isBangEqualAllowed()) {
   {if (true) throw new ParseException(RESOURCE.bangEqualNotAllowed().str());}
jj_consume_token(PERCENT_REMAINDER);
 if (!this.conformance.isPercentRemainderAllowed()) {
   {if (true) throw new ParseException(RESOURCE.percentRemainderNotAllowed().str());}
origin: apache/storm

} catch (NumberFormatException ex) {
  {if (true) throw SqlUtil.newContextException(getPos(),
    RESOURCE.illegalBinaryString(token.image));}
  } catch (NumberFormatException ex) {
    {if (true) throw SqlUtil.newContextException(getPos(),
      RESOURCE.illegalBinaryString(token.image));}
} catch (java.nio.charset.UnsupportedCharsetException e) {
  {if (true) throw SqlUtil.newContextException(getPos(),
    RESOURCE.unknownCharacterSet(charSet));}
  } catch (java.nio.charset.UnsupportedCharsetException e) {
    {if (true) throw SqlUtil.newContextException(getPos(),
      RESOURCE.unknownCharacterSet(charSet));}
  if (unicodeEscapeChar == 0) {
    {if (true) throw SqlUtil.newContextException(getPos(),
      RESOURCE.unicodeEscapeUnexpected());}
org.apache.calcite.runtimeCalciteResource

Javadoc

Compiler-checked resources for the Calcite project.

Most used methods

  • applyNotAllowed
  • bangEqualNotAllowed
  • identifierTooLong
  • illegalBinaryString
  • illegalCursorExpression
  • illegalFromEmpty
  • illegalMinusDate
  • illegalNonQueryExpression
  • illegalOrderBy
  • illegalQueryExpression
  • illegalRowExpression
  • invalidSampleSize
  • illegalRowExpression,
  • invalidSampleSize,
  • minusNotAllowed,
  • unicodeEscapeUnexpected,
  • unknownCharacterSet,
  • extendNotAllowed,
  • geometryDisabled,
  • limitStartCountNotAllowed,
  • percentRemainderNotAllowed,
  • illegalIntervalLiteral

Popular in Java

  • Reading from database using SQL prepared statement
  • compareTo (BigDecimal)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • setRequestProperty (URLConnection)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now