获取描述而不是Impala查询中的属性名称

发布于 2025-02-07 19:27:11 字数 447 浏览 2 评论 0原文

在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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文