CREATE EXTERNAL TABLE AS SELECT выпускают - PullRequest
0 голосов
/ 22 марта 2019
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';

В таблице клиентов должны отображаться только данные UniqueID

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...