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

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

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

origin: apache/flink

/**
 * Validates an item in the ORDER BY clause of a SELECT statement.
 *
 * @param select Select statement
 * @param orderItem ORDER BY clause item
 */
private void validateOrderItem(SqlSelect select, SqlNode orderItem) {
  switch (orderItem.getKind()) {
    case DESCENDING:
      validateFeature(RESOURCE.sQLConformance_OrderByDesc(),
        orderItem.getParserPosition());
      validateOrderItem(select,
        ((SqlCall) orderItem).operand(0));
      return;
  }
  final SqlValidatorScope orderScope = getOrderScope(select);
  validateExpr(orderItem, orderScope);
}
origin: Qihoo360/Quicksql

@Test public void testOrderByDesc() {
 checkFeature(
   "select name from dept order by ^name desc^",
   RESOURCE.sQLConformance_OrderByDesc());
}
origin: org.apache.calcite/calcite-core

@Test public void testOrderByDesc() {
 checkFeature(
   "select name from dept order by ^name desc^",
   RESOURCE.sQLConformance_OrderByDesc());
}
origin: Qihoo360/Quicksql

/**
 * Validates an item in the ORDER BY clause of a SELECT statement.
 *
 * @param select Select statement
 * @param orderItem ORDER BY clause item
 */
private void validateOrderItem(SqlSelect select, SqlNode orderItem) {
 switch (orderItem.getKind()) {
 case DESCENDING:
  validateFeature(RESOURCE.sQLConformance_OrderByDesc(),
    orderItem.getParserPosition());
  validateOrderItem(select,
    ((SqlCall) orderItem).operand(0));
  return;
 }
 final SqlValidatorScope orderScope = getOrderScope(select);
 validateExpr(orderItem, orderScope);
}
origin: org.apache.calcite/calcite-core

/**
 * Validates an item in the ORDER BY clause of a SELECT statement.
 *
 * @param select Select statement
 * @param orderItem ORDER BY clause item
 */
private void validateOrderItem(SqlSelect select, SqlNode orderItem) {
 switch (orderItem.getKind()) {
 case DESCENDING:
  validateFeature(RESOURCE.sQLConformance_OrderByDesc(),
    orderItem.getParserPosition());
  validateOrderItem(select,
    ((SqlCall) orderItem).operand(0));
  return;
 }
 final SqlValidatorScope orderScope = getOrderScope(select);
 validateExpr(orderItem, orderScope);
}
org.apache.calcite.runtimeCalciteResourcesQLConformance_OrderByDesc

Popular methods of CalciteResource

  • 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

  • Making http requests using okhttp
  • setContentView (Activity)
  • getResourceAsStream (ClassLoader)
  • onRequestPermissionsResult (Fragment)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • JCheckBox (javax.swing)
  • CodeWhisperer alternatives
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