You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Vitaliy (JIRA)" <ji...@apache.org> on 2019/07/15 15:05:00 UTC

[jira] [Created] (HIVE-21995) WHERE clause return null in column

Vitaliy created HIVE-21995:
------------------------------

             Summary: WHERE clause return null in column
                 Key: HIVE-21995
                 URL: https://issues.apache.org/jira/browse/HIVE-21995
             Project: Hive
          Issue Type: Bug
            Reporter: Vitaliy
         Attachments: image-2019-07-15-18-01-06-547.png, picture.png, picture2.png, picture3.png

Try to SELECT values from druid external table with WHERE clause.
Create external table

```
CREATE EXTERNAL TABLE IF NOT EXISTS druid_wikiticker
STORED BY 'org.apache.hadoop.hive.druid.DruidStorageHandler'
TBLPROPERTIES ("druid.datasource" = "wikiticker");
```

and try select values from external table

```

SELECT `__time`, `namespace`
FROM druid_wikiticker
WHERE `namespace` = 'Main'
```

[Waiting] 

All values are selected
[Reality]


Column by WHERE clause is null

Error stay here:

!image-2019-07-15-18-01-06-547.png!

Where i use 'GROUP BY' OR 'TRIM' Output has another value and return all data what i need. When i execute in druid query, vc0 return null. After i change "expression":"`namespace`" and execute query in druid, druid return real values.

 



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)