创建外部表为选择问题

时间:2019-03-22 19:37:22

标签: hiveql

Error : Error: Error while compiling statement: 
FAILED: NoMatchingMethodException No matching method for class 
org.apache.hadoop.hive.ql.udf.UDFToString with (array<string>). 
Possible choices: 
  _FUNC_(bigint)  _FUNC_(binary)  _FUNC_(boolean)  
  _FUNC_(date)  _FUNC_(decimal(38,18))  _FUNC_(double)  
  _FUNC_(float)  _FUNC_(int)  _FUNC_(smallint)   
  _FUNC_(string)  _FUNC_(timestamp)  _FUNC_(tinyint)  
  _FUNC_(void) 
(state=42000,code=40000)
CREATE EXTERNAL table dev_vlh0_pricing_engine.Client(UniqueID STRING)
STORED AS PARQUET
LOCATION '/dev/05510/app/VLH0/data/PE_decision_records_DEV/Client';

Insert Overwrite table dev_vlh0_pricing_engine.Client
SELECT ODMRequest.header.UniqueID from dev_vlh0_pricing_engine.TA1;

已经创建了一个外部表,因为仅根据所创建的主表为少数字段创建了另一个表。

CREATE EXTERNAL table dev_vlh0_pricing_engine.TABLE_Parquetstruct5
(ODMRequest STRUCT< header:STRUCT<UniqueID:STRING,DateTime:TIMESTAMP,SourceID:STRING,ChannelID:STRING,ProcessID:STRING>,Application:STRUCT<createdOn:string,clients:ARRAY<STRUCT<SRF:string,IsStaff:string>>>>,
ODMResponse STRUCT<championChallenger:string,PricingDecisionID:string>)STORED AS PARQUET 
LOCATION '/dev/05510/app/VLH0/data/PE_decision_records_DEV/Testparquet';

表客户端应仅显示详细信息唯一ID

0 个答案:

没有答案