异常 :   IllegalArgumentException: You tried to write a BigInt type when you are using a ValueWriter of type NullableIntWriterImpl.

 

处理: https://stackoverflow.com/questions/38248521/apache-drill-querying-mongo-collection

==>

Corrupted JSON records in MongoDB can cause this.

You can handle this using exec.enable_union_type option.

Fire query:

ALTER SYSTEM SET `exec.enable_union_type` = true;

Or go to http://localhost:8047/options (assuming drill is running on local machine replace with IP if not)

And change exec.enable_union_type to true.

posted on 2021-06-30 19:02  lshan  阅读(118)  评论(0编辑  收藏  举报