本文整理汇总了Java中org.apache.calcite.sql.SqlSelect.accept方法的典型用法代码示例。如果您正苦于以下问题:Java SqlSelect.accept方法的具体用法?Java SqlSelect.accept怎么用?Java SqlSelect.accept使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.calcite.sql.SqlSelect
的用法示例。
在下文中一共展示了SqlSelect.accept方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: checkRollupCubeGrpSets
import org.apache.calcite.sql.SqlSelect; //导入方法依赖的package包/类
private void checkRollupCubeGrpSets(SqlSelect sqlSelect) {
final ExprFinder rollupCubeGrpSetsFinder = new ExprFinder(RollupCubeGrpSets);
sqlSelect.accept(rollupCubeGrpSetsFinder);
if (rollupCubeGrpSetsFinder.find()) {
// DRILL-3962
unsupportedOperatorCollector.setException(SqlUnsupportedException.ExceptionType.FUNCTION,
"Dremio doesn't support ROLLUP, CUBE or GROUPING SETS functionality.");
throw new UnsupportedOperationException();
}
}
示例2: checkGrouping
import org.apache.calcite.sql.SqlSelect; //导入方法依赖的package包/类
private void checkGrouping(SqlSelect sqlSelect) {
final ExprFinder groupingFinder = new ExprFinder(GroupingID);
sqlSelect.accept(groupingFinder);
if (groupingFinder.find()) {
// DRILL-3962
unsupportedOperatorCollector.setException(SqlUnsupportedException.ExceptionType.FUNCTION,
"Grouping, Grouping_ID, Group_ID are not supported.");
throw new UnsupportedOperationException();
}
}
示例3: checkRollupCubeGrpSets
import org.apache.calcite.sql.SqlSelect; //导入方法依赖的package包/类
private void checkRollupCubeGrpSets(SqlSelect sqlSelect) {
final ExprFinder rollupCubeGrpSetsFinder = new ExprFinder(RollupCubeGrpSets);
sqlSelect.accept(rollupCubeGrpSetsFinder);
if (rollupCubeGrpSetsFinder.find()) {
unsupportedOperatorCollector.setException(SqlUnsupportedException.ExceptionType.FUNCTION,
"Rollup, Cube, Grouping Sets are not supported in GROUP BY clause.\n" +
"See Apache Drill JIRA: DRILL-3962");
throw new UnsupportedOperationException();
}
}
示例4: checkGrouping
import org.apache.calcite.sql.SqlSelect; //导入方法依赖的package包/类
private void checkGrouping(SqlSelect sqlSelect) {
final ExprFinder groupingFinder = new ExprFinder(GroupingID);
sqlSelect.accept(groupingFinder);
if (groupingFinder.find()) {
unsupportedOperatorCollector.setException(SqlUnsupportedException.ExceptionType.FUNCTION,
"Grouping, Grouping_ID, Group_ID are not supported.\n" +
"See Apache Drill JIRA: DRILL-3962");
throw new UnsupportedOperationException();
}
}