com.facebook.presto.sql.tree.With.isRecursive()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(2.0k)|赞(0)|评价(0)|浏览(96)

本文整理了Java中com.facebook.presto.sql.tree.With.isRecursive()方法的一些代码示例,展示了With.isRecursive()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。With.isRecursive()方法的具体详情如下:
包路径:com.facebook.presto.sql.tree.With
类名称:With
方法名:isRecursive

With.isRecursive介绍

暂无

代码示例

代码示例来源:origin: prestodb/presto

With with = node.getWith().get();
append(indent, "WITH");
if (with.isRecursive()) {
  builder.append(" RECURSIVE");

代码示例来源:origin: prestodb/presto

if (with.isRecursive()) {
  throw new SemanticException(NOT_SUPPORTED, with, "Recursive WITH queries are not supported");

代码示例来源:origin: rakam-io/rakam

if (with.isRecursive()) {
  builder.append(" RECURSIVE");

代码示例来源:origin: com.facebook.presto/presto-parser

With with = node.getWith().get();
append(indent, "WITH");
if (with.isRecursive()) {
  builder.append(" RECURSIVE");

代码示例来源:origin: uk.co.nichesolutions.presto/presto-parser

With with = node.getWith().get();
append(indent, "WITH");
if (with.isRecursive()) {
  builder.append(" RECURSIVE");

代码示例来源:origin: vqtran/EchoQuery

With with = node.getWith().get();
append(indent, "WITH");
if (with.isRecursive()) {
  builder.append(" RECURSIVE");

代码示例来源:origin: uk.co.nichesolutions.presto/presto-main

private void analyzeWith(Query node, AnalysisContext context)
{
  // analyze WITH clause
  if (!node.getWith().isPresent()) {
    return;
  }
  With with = node.getWith().get();
  if (with.isRecursive()) {
    throw new SemanticException(NOT_SUPPORTED, with, "Recursive WITH queries are not supported");
  }
  for (WithQuery withQuery : with.getQueries()) {
    if (withQuery.getColumnNames() != null && !withQuery.getColumnNames().isEmpty()) {
      throw new SemanticException(NOT_SUPPORTED, withQuery, "Column alias not supported in WITH queries");
    }
    Query query = withQuery.getQuery();
    process(query, context);
    String name = withQuery.getName();
    if (context.isNamedQueryDeclared(name)) {
      throw new SemanticException(DUPLICATE_RELATION, withQuery, "WITH query name '%s' specified more than once", name);
    }
    context.addNamedQuery(name, query);
  }
}

相关文章