我创建了一个客户表,其中包含 account_id.cust_id、account_id.ord_id 等列。我的创建外部表查询如下:
CREATE EXTERNAL TABLE spectrum.customers
(
"account_id.cust_id" numeric,
"account_id.ord_id" numeric
)
row format delimited
fields terminated by '^'
stored as textfile
location 's3://awsbucketname/test/';
SELECT "account_id.cust_id" FROM spectrum.customers limit 100
我得到一个错误:
无效操作:客户中不存在列 account_id.cust_id。
在创建表或编写选择查询时,是否有任何方法或语法来编写诸如 account_id.cust_id (text.text) 之类的列名?
请帮忙。
PS:单引号,反引号也不起作用。