Skip to main content
Muskan
Gold ⭐️
Jan 10, 2023 6:11 PM UTC
Solved

Incompatible parquet Schema on Impala but queries work fine in Hive

Hello ,

 

I am facing issues while executing some queries , I am getting below error for time being and the issue is being resolved autoamtically .

 

ERROR : File 'xxx/yyy/zzz/part-00000-c25df0cd-b7fa-4432-b416-16411dc390d4.c000.snappy.parquet' has an incompatible Parquet schema for column 'proc_mws.mws_xml.zeits'. Column type: TIMESTAMP, Parquet schema: optional byte_array charge [i:12 d:1 r:0]

 

I checked the files but there is no schema mismatch .

 

Can you please suggest me how i can fix the issue.

 

Muskan
MuskanAnswer
Gold ⭐️
Mar 19, 2024 5:33 PM UTC

Thanks 

 

4 replies

ChethanYM
Gold ⭐️
Gold ⭐️
Mar 4, 2024 1:33 PM UTC

@Muskan can you set this parameter before running the query and see if this helps?

set PARQUET_FALLBACK_SCHEMA_RESOLUTION=1;

 

Regards,

Chethan YM

Translate
Muskan
MuskanAuthor
Gold ⭐️
Mar 5, 2024 2:01 PM UTC

Hello @ChethanYM 

It works 

But we can set as default property in our cloudera manager for impala 

 

 

 

 

Translate
ChethanYM
Gold ⭐️
Gold ⭐️
Mar 19, 2024 4:23 PM UTC

Hi @Muskan 

You can set it in CM Impala advance configs -> 

Impala Daemon Command Line Argument Advanced Configuration Snippet (Safety Valve)

 

Regards,

Chethan YM

Translate