Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
Description
In org.apache.drill.exec.store.ischema.InfoSchemaTable, method getRelDataType(...) calls a version of RelDataTypeFactory.createSqlType(...) that sets the type of strings to VARCHAR(1) rather than VARCHAR(<some big number>).
This breaks string comparison. (For example, "DATA_TYPE = 'IN'" returns true when the INFORMATION_SCHEMA.COLUMNS.DATA_TYPE value is "INTEGER".)