Skip to content
Advertisement

hive:select all column exclude two

How to select all column exclude columns ‘date’ and ‘cst_id’ in hive?

Advertisement

Answer

Try below –

For single session – set hive.support.quoted.identifiers=none;

select `(date|cst_id)?+.+` from myTable.

refer quotedIdentifiers for more information on hive select using regular expressions

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement