with t as (select 'Hive supports subqueries only in the FROM clause (through Hive 0.12). The subquery has to be given a name because every table in a FROM clause must have a name. Columns in the subquery select list must have unique names.' as mycol)
select regexp_replace(mycol,'(\\d+\\.\\d+)|[.()]','$1'),'\\((.*?)\\)'
from t
1条答案
按热度按时间du7egjpx1#
配置单元仅支持从from子句到配置单元0的子查询。12必须为子查询指定一个名称,因为from子句中的每个表都必须有一个名称子查询选择列表中的列必须有唯一的名称