Hadoop 在配置单元中将语句显示为子查询

Hadoop 在配置单元中将语句显示为子查询,hadoop,hive,Hadoop,Hive,有没有办法在查询中使用show语句的输出?我试图查询表大小以便在计算中使用它,但得到的错误是“编译语句时出错:失败:ParseException行1:16无法识别'(''从源代码中显示''tblproperties''附近的输入” 子查询也是一个查询,SHOW关键字不属于查询语法的FROM部分 请参阅此--> 您还可以在FromClauseParser.g页面中检查错误消息的第一行 错误: hive> select * from (show tblproperties emp_tmp);

有没有办法在查询中使用show语句的输出?我试图查询表大小以便在计算中使用它,但得到的错误是“编译语句时出错:失败:ParseException行1:16无法识别'(''从源代码中显示''tblproperties''附近的输入”


子查询也是一个查询,SHOW关键字不属于查询语法的FROM部分

请参阅此-->

您还可以在FromClauseParser.g页面中检查错误消息的第一行

错误:

hive> select * from (show tblproperties emp_tmp);
NoViableAltException(239@[150:5: ( ( Identifier LPAREN )=> partitionedTableFunction | tableSource | subQuerySource | virtualTableSource )])
.
.
.
at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
FAILED: ParseException line 1:15 cannot recognize input near '(' 'show' 'tblproperties' in from source

这不是我真正想问的问题
hive> select * from (show tblproperties emp_tmp);
NoViableAltException(239@[150:5: ( ( Identifier LPAREN )=> partitionedTableFunction | tableSource | subQuerySource | virtualTableSource )])
.
.
.
at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
FAILED: ParseException line 1:15 cannot recognize input near '(' 'show' 'tblproperties' in from source