org.apache.hadoop.hive.ql.metadata.Table.getViewExpandedText()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(5.5k)|赞(0)|评价(0)|浏览(96)

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

Table.getViewExpandedText介绍

暂无

代码示例

代码示例来源:origin: apache/hive

public void setViewAsReferenceText(String dbName, Table table) {
 String originalText = table.getViewOriginalText();
 String expandedText = table.getViewExpandedText();
 if (!dbName.equals(table.getDbName())) {
  // TODO: If the DB name doesn't match with the metadata from dump, then need to rewrite the original and expanded
  // texts using new DB name. Currently it refers to the source database name.
 }
 this.createViewDesc.setViewOriginalText(originalText);
 this.createViewDesc.setViewExpandedText(expandedText);
}

代码示例来源:origin: apache/drill

public void setViewAsReferenceText(String dbName, Table table) {
 String originalText = table.getViewOriginalText();
 String expandedText = table.getViewExpandedText();
 if (!dbName.equals(table.getDbName())) {
  // TODO: If the DB name doesn't match with the metadata from dump, then need to rewrite the original and expanded
  // texts using new DB name. Currently it refers to the source database name.
 }
 this.createViewDesc.setViewOriginalText(originalText);
 this.createViewDesc.setViewExpandedText(expandedText);
}

代码示例来源:origin: apache/drill

private static void getViewInfo(StringBuilder tableInfo, Table tbl) {
 formatOutput("View Original Text:", tbl.getViewOriginalText(), tableInfo);
 formatOutput("View Expanded Text:", tbl.getViewExpandedText(), tableInfo);
 formatOutput("View Rewrite Enabled:", tbl.isRewriteEnabled() ? "Yes" : "No", tableInfo);
}

代码示例来源:origin: apache/hive

final String viewQuery = materializedViewTable.getViewExpandedText();
final RelNode viewScan = createMaterializedViewScan(conf, materializedViewTable);
if (viewScan == null) {

代码示例来源:origin: apache/hive

tbl.getViewExpandedText();
outStream.write(createTab_stmt.getBytes(StandardCharsets.UTF_8));
return 0;

代码示例来源:origin: apache/drill

tbl.getViewExpandedText();
outStream.write(createTab_stmt.getBytes(StandardCharsets.UTF_8));
return 0;

代码示例来源:origin: apache/hive

private static void getViewInfo(StringBuilder tableInfo, Table tbl) {
 formatOutput("Original Query:", tbl.getViewOriginalText(), tableInfo);
 formatOutput("Expanded Query:", tbl.getViewExpandedText(), tableInfo);
 if (tbl.isMaterializedView()) {
  formatOutput("Rewrite Enabled:", tbl.isRewriteEnabled() ? "Yes" : "No", tableInfo);
  formatOutput("Outdated for Rewriting:", tbl.isOutdatedForRewriting() == null ? "Unknown"
    : tbl.isOutdatedForRewriting() ? "Yes" : "No", tableInfo);
 }
}

代码示例来源:origin: apache/drill

assert (getViewExpandedText() != null);
} else if (isMaterializedView()) {
 assert(getViewOriginalText() != null);
 assert(getViewExpandedText() == null);
} else {
 assert(getViewOriginalText() == null);
 assert(getViewExpandedText() == null);

代码示例来源:origin: apache/hive

assert (getViewExpandedText() != null);
} else {
 assert(getViewOriginalText() == null);
 assert(getViewExpandedText() == null);

代码示例来源:origin: apache/hive

tab.getViewExpandedText(), alias, qb.getParseInfo().getSrcForAlias(
  alias));
try {
 String viewText = tab.getViewExpandedText();
 TableMask viewMask = new TableMask(this, conf, false);
 viewTree = ParseUtils.parse(viewText, ctx, tab.getCompleteName());

代码示例来源:origin: apache/drill

tab.getViewExpandedText(), alias, qb.getParseInfo().getSrcForAlias(
    alias));
try {
 String viewText = tab.getViewExpandedText();
 TableMask viewMask = new TableMask(this, conf, false);
 viewTree = ParseUtils.parse(viewText, ctx, tab.getCompleteName());

代码示例来源:origin: apache/hive

String viewText = tab.getViewExpandedText();
if (viewText.trim().isEmpty()) {
 throw new SemanticException(ErrorMsg.MATERIALIZED_VIEW_DEF_EMPTY);

代码示例来源:origin: apache/hive

planner.initCtx(ctx);
planner.init(false);
final RelNode plan = planner.genLogicalPlan(ParseUtils.parse(mv.getViewExpandedText()));
if (plan == null) {
 String msg = "Cannot enable automatic rewriting for materialized view.";

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

private static void getViewInfo(StringBuilder tableInfo, Table tbl) {
 formatOutput("View Original Text:", tbl.getViewOriginalText(), tableInfo);
 formatOutput("View Expanded Text:", tbl.getViewExpandedText(), tableInfo);
}

代码示例来源:origin: org.apache.hadoop.hive/hive-exec

private static void getViewInfo(StringBuilder tableInfo, Table tbl) {
 formatOutput("View Original Text:", tbl.getViewOriginalText(), tableInfo);
 formatOutput("View Expanded Text:", tbl.getViewExpandedText(), tableInfo);
}

代码示例来源:origin: org.apache.hadoop.hive/hive-exec

assert(getViewExpandedText() != null);
} else {
 assert(getViewOriginalText() == null);
 assert(getViewExpandedText() == null);

代码示例来源:origin: org.apache.hadoop.hive/hive-exec

ASTNode viewTree;
final ASTNodeOrigin viewOrigin = new ASTNodeOrigin("VIEW", tab.getTableName(),
  tab.getViewExpandedText(), alias, qb.getParseInfo().getSrcForAlias(
  alias));
try {
 String viewText = tab.getViewExpandedText();

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

ASTNode viewTree;
final ASTNodeOrigin viewOrigin = new ASTNodeOrigin("VIEW", tab.getTableName(),
  tab.getViewExpandedText(), alias, qb.getParseInfo().getSrcForAlias(
    alias));
try {
 String viewText = tab.getViewExpandedText();

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

assert(getViewExpandedText() != null);
} else {
 assert(getViewOriginalText() == null);
 assert(getViewExpandedText() == null);

代码示例来源:origin: apache/incubator-atlas

if (hiveTable.getViewExpandedText() != null) {
  tableReference.set("viewExpandedText", hiveTable.getViewExpandedText());

相关文章

微信公众号

最新文章

更多

Table类方法