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

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

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

origin: apache/flink

protected void validateWhereOrOn(
  SqlValidatorScope scope,
  SqlNode condition,
  String clause) {
  validateNoAggs(aggOrOverOrGroupFinder, condition, clause);
  inferUnknownTypes(
    booleanType,
    scope,
    condition);
  condition.validate(this, scope);
  final RelDataType type = deriveType(scope, condition);
  if (!SqlTypeUtil.inBooleanFamily(type)) {
    throw newValidationError(condition, RESOURCE.condMustBeBoolean(clause));
  }
}
origin: apache/flink

throw newValidationError(expand, RESOURCE.condMustBeBoolean("DEFINE"));
origin: Qihoo360/Quicksql

protected void validateWhereOrOn(
  SqlValidatorScope scope,
  SqlNode condition,
  String clause) {
 validateNoAggs(aggOrOverOrGroupFinder, condition, clause);
 inferUnknownTypes(
   booleanType,
   scope,
   condition);
 condition.validate(this, scope);
 final RelDataType type = deriveType(scope, condition);
 if (!SqlTypeUtil.inBooleanFamily(type)) {
  throw newValidationError(condition, RESOURCE.condMustBeBoolean(clause));
 }
}
origin: org.apache.calcite/calcite-core

protected void validateWhereOrOn(
  SqlValidatorScope scope,
  SqlNode condition,
  String clause) {
 validateNoAggs(aggOrOverOrGroupFinder, condition, clause);
 inferUnknownTypes(
   booleanType,
   scope,
   condition);
 condition.validate(this, scope);
 final RelDataType type = deriveType(scope, condition);
 if (!SqlTypeUtil.inBooleanFamily(type)) {
  throw newValidationError(condition, RESOURCE.condMustBeBoolean(clause));
 }
}
origin: Qihoo360/Quicksql

public void validateCall(
  SqlCall call,
  SqlValidator validator,
  SqlValidatorScope scope,
  SqlValidatorScope operandScope) {
 assert call.getOperator() == this;
 assert call.operandCount() == 2;
 SqlCall aggCall = call.operand(0);
 if (!aggCall.getOperator().isAggregator()) {
  throw validator.newValidationError(aggCall,
    RESOURCE.filterNonAggregate());
 }
 final SqlNode condition = call.operand(1);
 validator.validateAggregateParams(aggCall, condition, scope);
 final RelDataType type = validator.deriveType(scope, condition);
 if (!SqlTypeUtil.inBooleanFamily(type)) {
  throw validator.newValidationError(condition,
    RESOURCE.condMustBeBoolean("FILTER"));
 }
}
origin: Qihoo360/Quicksql

throw newValidationError(expand, RESOURCE.condMustBeBoolean("DEFINE"));
origin: org.apache.calcite/calcite-core

throw newValidationError(expand, RESOURCE.condMustBeBoolean("DEFINE"));
origin: org.apache.calcite/calcite-core

public void validateCall(
  SqlCall call,
  SqlValidator validator,
  SqlValidatorScope scope,
  SqlValidatorScope operandScope) {
 assert call.getOperator() == this;
 assert call.operandCount() == 2;
 SqlCall aggCall = getAggCall(call);
 if (!aggCall.getOperator().isAggregator()) {
  throw validator.newValidationError(aggCall,
    RESOURCE.filterNonAggregate());
 }
 final SqlNode condition = call.operand(1);
 SqlNodeList orderList = null;
 if (hasWithinGroupCall(call)) {
  SqlCall withinGroupCall = getWithinGroupCall(call);
  orderList = withinGroupCall.operand(1);
 }
 validator.validateAggregateParams(aggCall, condition, orderList, scope);
 final RelDataType type = validator.deriveType(scope, condition);
 if (!SqlTypeUtil.inBooleanFamily(type)) {
  throw validator.newValidationError(condition,
    RESOURCE.condMustBeBoolean("FILTER"));
 }
}
org.apache.calcite.runtimeCalciteResourcecondMustBeBoolean

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

  • 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 PhpStorm 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