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

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

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

origin: apache/hive

/** Creates a call to an aggregate function. */
public AggCall aggregateCall(SqlAggFunction aggFunction, boolean distinct,
               RexNode filter, String alias, Iterable<? extends RexNode> operands) {
 if (filter != null) {
  if (filter.getType().getSqlTypeName() != SqlTypeName.BOOLEAN) {
   throw Static.RESOURCE.filterMustBeBoolean().ex();
  }
  if (filter.getType().isNullable()) {
   filter = call(SqlStdOperatorTable.IS_TRUE, filter);
  }
 }
 return new AggCallImpl(aggFunction, distinct, filter, alias,
   ImmutableList.copyOf(operands));
}
origin: apache/drill

/** Creates a call to an aggregate function. */
public AggCall aggregateCall(SqlAggFunction aggFunction, boolean distinct,
               RexNode filter, String alias, Iterable<? extends RexNode> operands) {
 if (filter != null) {
  if (filter.getType().getSqlTypeName() != SqlTypeName.BOOLEAN) {
   throw Static.RESOURCE.filterMustBeBoolean().ex();
  }
  if (filter.getType().isNullable()) {
   filter = call(SqlStdOperatorTable.IS_TRUE, filter);
  }
 }
 return new AggCallImpl(aggFunction, distinct, filter, alias,
     ImmutableList.copyOf(operands));
}
origin: org.apache.calcite/calcite-core

AggCallImpl(SqlAggFunction aggFunction, boolean distinct,
  boolean approximate, RexNode filter,
  String alias, ImmutableList<RexNode> operands,
  ImmutableList<RexNode> orderKeys) {
 this.aggFunction = Objects.requireNonNull(aggFunction);
 this.distinct = distinct;
 this.approximate = approximate;
 this.alias = alias;
 this.operands = Objects.requireNonNull(operands);
 this.orderKeys = Objects.requireNonNull(orderKeys);
 if (filter != null) {
  if (filter.getType().getSqlTypeName() != SqlTypeName.BOOLEAN) {
   throw RESOURCE.filterMustBeBoolean().ex();
  }
  if (filter.getType().isNullable()) {
   filter = call(SqlStdOperatorTable.IS_TRUE, filter);
  }
 }
 this.filter = filter;
}
origin: Qihoo360/Quicksql

/** Creates a call to an aggregate function. */
public AggCall aggregateCall(SqlAggFunction aggFunction, boolean distinct,
  boolean approximate, RexNode filter, String alias,
  Iterable<? extends RexNode> operands) {
 if (filter != null) {
  if (filter.getType().getSqlTypeName() != SqlTypeName.BOOLEAN) {
   throw RESOURCE.filterMustBeBoolean().ex();
  }
  if (filter.getType().isNullable()) {
   filter = call(SqlStdOperatorTable.IS_TRUE, filter);
  }
 }
 return new AggCallImpl(aggFunction, distinct, approximate, filter, alias,
   ImmutableList.copyOf(operands));
}
org.apache.calcite.runtimeCalciteResourcefilterMustBeBoolean

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

  • Parsing JSON documents to java classes using gson
  • findViewById (Activity)
  • getSharedPreferences (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Top Sublime Text plugins
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