drill
2bf48113 - DRILL-4441: Fix varchar data read out of Avro filtering incorrectly due to metadata bug

Commit
8 years ago
DRILL-4441: Fix varchar data read out of Avro filtering incorrectly due to metadata bug The precision of the Varchar datatype was not being set causing inconsistent truncation of values to the default length of 1. Fixed the same issue with varbinary. The test framework was previously taking a string as the baseline for a binary value, which cannot express all possible values. Fixed the test to intstead use a byte array. Thie required updating the hive tests that were using the old method of specifying baselines with a String. Fix cast to varbinary when reading from a data source with schema needed for writing a test. Updated patch to remove varchar lengths from table creation. This issue was fixed more generally by DRILL-4465, which provides a default type length for varchar and varbinary during the setup of calcite. This update now just provides tests to verify the fix in this case. Closes #393
Author
Committer
Parents
Loading