蜂巢:选择所有列排除两个 [英] hive:select all column exclude two
本文介绍了蜂巢:选择所有列排除两个的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在配置单元中选择所有排除列"date"和"cst_id"的列?
How to select all column exclude columns 'date' and 'cst_id' in hive?
推荐答案
尝试以下-
对于单个会话-设置hive.support.quoted.identifiers = none;
select `(date|cst_id)?+.+` from myTable.
引用 quotedIdentifiers 有关使用正则表达式进行蜂巢选择的更多信息
refer quotedIdentifiers for more information on hive select using regular expressions
这篇关于蜂巢:选择所有列排除两个的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文