You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, Developers!
I used the Cloudera Hadoop 5.13.1, the version of Hive 0.14.
Json-serde-cdh5-shim-1.3.9-SNAPSHOT.jar was added to Hadoop cluster.
I use a schema for our JSON files:
A table has been created succesfully, but SELECT from the empty table causes an error:
Click to expand
Error: Error while compiling statement: FAILED: IllegalArgumentException Error: : expected at the end of 'struct<shift:struct<array:struct<begin_time:struct<datetime:string>,keycode:string,cash_number:int,hostname:string,kkm_model_name:string,kkm_model_version:string,eklz_act_date:struct<datetime:string>,free_kkm_fm:int,end_time:struct<datetime:string>>>,kkm_serial:string,shift_number:string>:struct<operation:struct<array:struct<module_version:string,point_code:string,optype:string,wholesale_number:string,wholesale_contr:string,wholesale_opguid:struct<guid:string>,im_order:struct<array:struct<number:string,packets:struct<table:struct<rows:array<struct<code:string,price:double,quant:double>>>>,packets_count:int>>,create_time:struct<datetime:string>,save_time:struct<datetime:string>,readonly:boolean,deleted:boolean,history:struct<table:struct<rows:array<struct<action:string,act_time:struct<datetime:string>,keycode:string>>>>,assistant:string,content:struct<table:struct<rows:array<struct<code:string,quant:double,price:double,nds_rate:struct<guid:string>,nds_sum:double,save_time:struct<datetime:string>,round:int,excise_mark:array<string>>>>>,hist_content:struct<table:struct<rows:array<struct<action:string,act_time:struct<datetime:string>,code:string,quant:double,old_quant:double,price:double,keycode:string>>>>,cashless:struct<table:struct<rows:array<struct<pay_system:string,paysys_type:string,op_num:string,pay_time:struct<datetime:string>,term_num:string,point_num:string,auth_code:string,card_app:string,card_num:string,opsum:double,slip:struct<array:struct<check_text1:string,check_text2:string>>,nominal:double>>>>,card:struct<table:struct<rows:array<struct<code:string,card_num:string,price:double>>>>,present:struct<table:struct<rows:array<struct<code:string,quant:int,price:double>>>>,coupons:struct<table:struct<rows:array<struct<code:string,save_time:struct<datetime:string>>>>>,correct_paysystem:boolean,cashsum:double,round_sum:double,discount:double,discount_actions:struct<table:struct<rows:array<struct<id:struct<guid:string>,format:string,count:int,sum:double,arts:struct<table:struct<rows:array<struct<id:struct<guid:string>,code:string,price:double,discount:double,quantity:double,parent_action_id:struct<guid:string>,parent_id:struct<guid:string>>>>>,receipt_text:string>>>>,stickers_count:int,sticker_actions:struct<table:struct<rows:array<struct<id:struct<guid:string>,format:string,count:int,receipt_text:string>>>>,information_action:struct<table:struct<rows:array<struct<id:struct<guid:string>,format:string,count:int,receipt_text:string>>>>,coupons_count:int,coupons_actions:struct<table:struct<rows:array<struct<id:struct<guid:string>,format:string,short_code:string,count:int,receipt_text:string>>>>,smch_actions:struct<table:struct<rows:array<struct<id:string,sum:double,arts:struct<table:struct<rows:array<struct<code:string,price:double,discount:double,quantity:double>>>>>>>>,approved_misc_params:struct<array:struct<buyer_age:boolean,stickers_count:int,buyer_phone_number:string>>,discounted_unique_coupons:struct<table:struct<rows:array<struct<barcode:string,action_id:struct<table:struct<rows:array<struct<action_id:struct<guid:string>>>>>,result:boolean,error:boolean,message:boolean,actions:struct<table:struct<rows:array<struct<action_id:struct<guid:string>>>>>,save_time:struct<datetime:string>>>>,generated_unique_coupons:struct<table:struct<rows:array<struct<action_id:struct<guid:string>,receipt_text:string,barcodes:struct<table:struct<rows:array<struct<barcode:string,verif_barcode:string>>>>>>>>,buyer_souvenirs:struct<table:struct<rows:array<struct<code:string,quantity:int>>>>,loyalty_cards:struct<table:struct<rows:array<struct<code:string,barcode:string,card_num:string,create_time:struct<datetime:string>>>>>,produced_loyalty_cards:struct<table:struct<rows:array<struct<barcode:string,card_num:string,action_count:int,create_time:struct<datetime:string>>>>>,egais_slips:struct<array:struct<alco_slip:struct<array:struct<url:string,sign:string,sign_time:struct<datetime:string>,number:int,xml_check:string,arts:struct<table:struct<rows:array<struct<code:string>>>>>>>>,check_params:struct<array:struct<check_type:int,use_journal:int,lines_count:int>>,number:string,sale_number:string,sale_id:struct<guid:string>,fiscal_number:string,fiscal_sign:string,cashsum:double,retsum:double,cashless_sum:double,cashless_ret:double,creditsum'
SQLState: 42000
ErrorCode: 40000
If I remove several partitions from the schema, SELECT works without errors.
How to avoid this problem?
The text was updated successfully, but these errors were encountered:
Hello, Developers!
I used the Cloudera Hadoop 5.13.1, the version of Hive 0.14.
Json-serde-cdh5-shim-1.3.9-SNAPSHOT.jar was added to Hadoop cluster.
I use a schema for our JSON files:
Click to expand
A table has been created succesfully, but SELECT from the empty table causes an error:
Click to expand
How to avoid this problem?
The text was updated successfully, but these errors were encountered: