Codota Logo
SqlValidatorException
Code IndexAdd Codota to your IDE (free)

How to use
SqlValidatorException
in
org.apache.calcite.sql.validate

Best Java code snippets using org.apache.calcite.sql.validate.SqlValidatorException (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
LocalDateTime l =
  • Codota Iconnew LocalDateTime()
  • Codota IconLocalDateTime.now()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseLocalDateTime(text)
  • Smart code suggestions by Codota
}
origin: Qihoo360/Quicksql

 /**
  * Creates a new SqlValidatorException object.
  *
  * @param message error message
  * @param cause   underlying cause
  */
 public SqlValidatorException(
   String message,
   Throwable cause) {
  super(message, cause);

  // TODO: see note in CalciteException constructor
  LOGGER.trace("SqlValidatorException", this);
  LOGGER.error(toString());
 }
}
origin: dremio/dremio-oss

 @Override
 public void validateAggregateParams(SqlCall aggCall, SqlNode filter, SqlValidatorScope scope) {
  if (filter != null) {
   Exception e = new SqlValidatorException("Dremio does not currently support aggregate functions with a filter clause", null);
   SqlParserPos pos = filter.getParserPosition();
   CalciteContextException ex = RESOURCE.validatorContextPoint(pos.getLineNum(), pos.getColumnNum()).ex(e);
   ex.setPosition(pos.getLineNum(), pos.getColumnNum());
   throw ex;
  }
  super.validateAggregateParams(aggCall, filter, scope);
 }
}
origin: org.apache.calcite/calcite-core

 /**
  * Creates a new SqlValidatorException object.
  *
  * @param message error message
  * @param cause   underlying cause
  */
 public SqlValidatorException(
   String message,
   Throwable cause) {
  super(message, cause);

  // TODO: see note in CalciteException constructor
  LOGGER.trace("SqlValidatorException", this);
  LOGGER.error(toString());
 }
}
org.apache.calcite.sql.validateSqlValidatorException

Javadoc

Exception thrown while validating a SQL statement.

Unlike org.apache.calcite.runtime.CalciteException, this is a checked exception, which reminds code authors to wrap it in another exception containing the line/column context.

Most used methods

  • toString
  • <init>
    Creates a new SqlValidatorException object.

Popular in Java

  • Creating JSON documents from java classes using gson
  • putExtra (Intent)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • addToBackStack (FragmentTransaction)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • MalformedURLException (java.net)
    Thrown to indicate that a malformed URL has occurred. Either no legal protocol could be found in a s
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Stack (java.util)
    The Stack class represents a last-in-first-out (LIFO) stack of objects. It extends class Vector with
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement.A servlet is a small Java program that runs within
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now