获取描述而不是Impala查询中的属性名称
在Impala(在Hadoop中使用色调)作为输出时
describe scheme1.table1
,我正在获得带有列的表格
'名称' '类型' “评论”
字段中的“注释”我看到了属性值的详细规范,而在“名称”字段中,我看到了属性ID编码。
您能说,您是否有可能进入Impala(或Hive)查询字段的“评论”,而不是字段的“名称”?
例如,在正常生活中,我写
select field1, field2 from scheme1.table1
我想做的就是这样的事情
select comment(field1), comment(field2) from scheme1.table1
While running
describe scheme1.table1
in Impala (using with Hue in Hadoop) as an output I am getting a table with columns
'name'
'type'
'comment'
In 'comment' field I see the detailed specification of the attribute values, while in 'name' field I see attribute id-codes.
Could you, please, say if it is possible to get in impala(or hive) query the 'comment' of the fields instead of 'name' of the fields?
For example, in normal life I write
select field1, field2 from scheme1.table1
The thing I want to do is a thing like
select comment(field1), comment(field2) from scheme1.table1
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论