drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Barclay (Drill) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DRILL-2283) Internal VARCHAR(1) breaks INFO._SCHEMA table string comparison
Date Tue, 24 Feb 2015 20:12:04 GMT

    [ https://issues.apache.org/jira/browse/DRILL-2283?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14335358#comment-14335358
] 

Daniel Barclay (Drill) commented on DRILL-2283:
-----------------------------------------------

Note:  Part of addressing DRILL-2128 (DatabaseMetaData.getColumns() bugs).

> Internal VARCHAR(1) breaks INFO._SCHEMA table string comparison
> ---------------------------------------------------------------
>
>                 Key: DRILL-2283
>                 URL: https://issues.apache.org/jira/browse/DRILL-2283
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Metadata
>            Reporter: Daniel Barclay (Drill)
>            Assignee: Parth Chandra
>             Fix For: 0.8.0
>
>         Attachments: DRILL-2283.1.patch.txt
>
>
> 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".)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message