在使用impala查询的时候,在使用cast函数将数据转为decimal类型时,会报错:
Bad status for request TFetchResultsReq(fetchType=0, operationHandle=TOperationHandle(hasResultSet=True,
modifiedRowCount=None, operationType=0, operationId=THandleIdentifier(secret='\xc8\xc1j\xfe\xd6.B\xa2\x9e\xc8\x1a63\xfb\x15\xf2'
, guid='\xf8\x82.\x81^\xabE\x7f\x00\x00\x00\x00\xda\xf8\xa9\xa1')), orientation=4, maxRows=100)
: TFetchResultsResp(status=TStatus(errorCode=None, errorMessage='UDF ERROR: Decimal expression
overflowed\n', sqlState='HY000', infoMessages=None, statusCode=3), results=None, hasMoreRows=None)
查了一波,发现是impala的一个bug。。。。
bug链接:https://issues.apache.org/jira/browse/IMPALA-6405
到现在这个bug貌似还是存在,下面是我测试的截图:

本文探讨了在使用Impala进行查询时遇到的decimal类型转换错误,详述了出现的UDFERROR: Decimalexpression overflow问题,指向Apache Impala的一个已知bug。提供了解决方案,包括避免转换为decimal或寻找其他转换方法。
2624

被折叠的 条评论
为什么被折叠?



