org.apache.hadoop.hive.ql.parse.QBParseInfo.getTableSpec()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(2.1k)|赞(0)|评价(0)|浏览(67)

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

QBParseInfo.getTableSpec介绍

[英]This method is used only for the analyze command to get the partition specs
[中]此方法仅用于analyze命令以获取分区规格

代码示例

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

return;
TableSpec tblSpec = qbp.getTableSpec(alias);
Map<String, String> partSpec = tblSpec.getPartSpec();
if (partSpec != null) {
 throw new SemanticException(ErrorMsg.NEED_PARTITION_SPECIFICATION.getMsg());
List<Partition> partitions = qbp.getTableSpec().partitions;
if (partitions != null) {
 for (Partition partn : partitions) {

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

return;
TableSpec tblSpec = qbp.getTableSpec(alias);
Map<String, String> partSpec = tblSpec.getPartSpec();
if (partSpec != null) {
 throw new SemanticException(ErrorMsg.NEED_PARTITION_SPECIFICATION.getMsg());
List<Partition> partitions = qbp.getTableSpec().partitions;
if (partitions != null) {
 for (Partition partn : partitions) {

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

tableSpec tblSpec = qbp.getTableSpec(alias);
Map<String, String> partSpec = tblSpec.getPartSpec();
  throw new SemanticException(ErrorMsg.NEED_PARTITION_SPECIFICATION.getMsg());
 List<Partition> partitions = qbp.getTableSpec().partitions;
 if (partitions != null) {
  for (Partition partn : partitions) {

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

TableSpec tblSpec = qbp.getTableSpec(alias);
Map<String, String> partSpec = tblSpec.getPartSpec();
  throw new SemanticException(ErrorMsg.NEED_PARTITION_SPECIFICATION.getMsg());
 List<Partition> partitions = qbp.getTableSpec().partitions;
 if (partitions != null) {
  for (Partition partn : partitions) {

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

StatsWork statsWork = new StatsWork(parseCtx.getQB().getParseInfo().getTableSpec());
statsWork.setAggKey(op.getConf().getStatsAggPrefix());
Task<StatsWork> statsTask = TaskFactory.get(statsWork, parseCtx.getConf());
tableSpec tblSpec = parseInfo.getTableSpec();
if (tblSpec.specType == tableSpec.SpecType.STATIC_PARTITION) {

相关文章

微信公众号

最新文章

更多

QBParseInfo类方法