Bigdata, Hadoop ecosystem, Semantic IoT등의 프로젝트를 진행중에 습득한 내용을 정리하는 곳입니다.
필요한 분을 위해서 공개하고 있습니다.
문의사항은 gooper@gooper.com로 메일을
보내주세요.
impala AnalysisException: Incomplatible return type 'DECIMAL(38,0)' and 'DECIMAL(38,5)' of exprs가 발생시 조치
impala 3.2.0에서 case문장에서 비교할때 AnalysisException: Incomplatible return type 'DECIMAL(38,0)' and 'DECIMAL(38,5)' of exprs가 발생하는 오류가 발생한다.
set DECIMAL_V2=FALSE; 수행시켜 해당 기능을 끄고 수행할 수 있다.
예) select case when 1=1 then a else b end from (select cast(123456789 as decimal(38,0)) a, cast(123456789 as decimal(38.5)) b) x
는 Incompatible return types 'DECIMAL(38,0)' and 'DECIMAL(38.5) of exprs 'a' and b'라는 오류가 발생함