简体   繁体   中英

Role of ?+.+ in select statement in HiveQL

I have some HQL code which I am trying to understand. Below is the code.

FROM (SELECT col_1, col_2, col_3 FROM t1)
INSERT OVERWRITE TABLE t2
SELECT `(col_1)?+.+`

Can someone explain how does this?+.+ work? and what is the keyword to refer to this type of construct in sql/hql?

I think I found the solution. The select statement is just using a regular expression, so in this case

SELECT (col_1)?+.+

will select all columns except col_1

Reference Doc: https://cwiki.apache.org/confluence/display/Hive/LanguageManual+Select

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM