如何在 Hive 的 "as" 语句中包含一个点?
How do you include a dot in a "as" statement in Hive?
SELECT
metadata.field as something.field
FROM
tbl2
由于 "as" 语句中的句点,此查询不起作用。如果我删除它,查询将正常工作。我无法将 something.field 括在引号中,而且我似乎无法逃避这个点。有人知道怎么做吗?
使用反引号 (``),如下例所示:
create table papo1 as select date as `pi.po` from t1 ;
hive> describe papo1;
OK
pi.po string
SELECT
metadata.field as something.field
FROM
tbl2
由于 "as" 语句中的句点,此查询不起作用。如果我删除它,查询将正常工作。我无法将 something.field 括在引号中,而且我似乎无法逃避这个点。有人知道怎么做吗?
使用反引号 (``),如下例所示:
create table papo1 as select date as `pi.po` from t1 ;
hive> describe papo1;
OK
pi.po string