congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
SqlDialect.supportsAggregateFunction
Code IndexAdd Tabnine to your IDE (free)

How to use
supportsAggregateFunction
method
in
org.apache.calcite.sql.SqlDialect

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

origin: apache/hive

@Override
public boolean matches(RelOptRuleCall call) {
 final HiveAggregate agg = call.rel(0);
 final HiveJdbcConverter converter = call.rel(1);
 for (AggregateCall relOptRuleOperand : agg.getAggCallList()) {
  SqlAggFunction f = relOptRuleOperand.getAggregation();
  if (f instanceof HiveSqlCountAggFunction) {
   //count distinct with more that one argument is not supported
   HiveSqlCountAggFunction countAgg = (HiveSqlCountAggFunction)f;
   if (countAgg.isDistinct() && 1 < relOptRuleOperand.getArgList().size()) {
    return false;
   }
  }
  SqlKind kind = f.getKind();
  if (!converter.getJdbcDialect().supportsAggregateFunction(kind)) {
   return false;
  }
 }
 return true;
}
origin: Qihoo360/Quicksql

/** Returns whether this JDBC data source can implement a given aggregate
 * function. */
private static boolean canImplement(SqlAggFunction aggregation, SqlDialect sqlDialect) {
 return sqlDialect.supportsAggregateFunction(aggregation.getKind());
}
origin: org.apache.calcite/calcite-core

/** Returns whether this JDBC data source can implement a given aggregate
 * function. */
private static boolean canImplement(SqlAggFunction aggregation, SqlDialect sqlDialect) {
 return sqlDialect.supportsAggregateFunction(aggregation.getKind());
}
org.apache.calcite.sqlSqlDialectsupportsAggregateFunction

Popular methods of SqlDialect

  • quoteStringLiteral
    Converts a string into a string literal. For example, can't run becomes 'can''t run'.
  • unparseCall
  • <init>
    Creates a SqlDialect.
  • quoteIdentifier
    Quotes a multi-part identifier.
  • supportsCharSet
    Returns whether the dialect supports character set names as part of a data type, for instance VARCHA
  • allowsAs
  • containsNonAscii
    Returns whether the string contains any characters outside the comfortable 7-bit ASCII range (32 thr
  • defaultNullDirection
    Returns whether NULL values are sorted first or last, in this dialect, in an ORDER BY item of a give
  • emulateNullDirection
    Returns the SqlNode for emulating the null direction for the given field or null if no emulation ne
  • getCalendarPolicy
  • getCastSpec
  • getDatabaseProduct
    Returns the database this dialect belongs to, SqlDialect.DatabaseProduct#UNKNOWN if not known, never
  • getCastSpec,
  • getDatabaseProduct,
  • getNullCollation,
  • hasImplicitTableAlias,
  • identifierNeedsToBeQuoted,
  • quoteStringLiteralUnicode,
  • quoteTimestampLiteral,
  • rewriteSingleValueExpr,
  • supportsAliasedValues

Popular in Java

  • Creating JSON documents from java classes using gson
  • requestLocationUpdates (LocationManager)
  • setRequestProperty (URLConnection)
  • getSharedPreferences (Context)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Sublime Text for Python
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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