drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "B Anil Kumar (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (DRILL-1403) HBase predicate pushdown filters are not getting applied
Date Thu, 11 Sep 2014 14:38:34 GMT

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

B Anil Kumar edited comment on DRILL-1403 at 9/11/14 2:37 PM:
--------------------------------------------------------------

Can anyone please review. I verified in few cases. This patch is working for below queries(with
select * ).

{noformat}
SELECT * FROM hbase.`students1` t where t.account.name = 'Bob' AND t.address.zipcode = '12345'

SELECT * FROM hbase.`students1` t where t.account.name = 'Bob' AND t.address.zipcode = '12345'
OR t.account.name = 'Frank' OR t.account.name = 'Mary'

SELECT * FROM hbase.`students1` t where t.account.name = 'Bob' OR t.account.name = 'Frank'
OR  t.account.name = 'Mary' OR  t.account.name = 'Alice'
{noformat}

But when we select any field like below, then it's not even calling HBasePushFilterIntoScan.matches.
Is this expected?

{noformat}
SELECT CAST(account['name'] as VarChar(20)) from hbase.`students1` where row_key = 'student1'
OR row_key = 'student3' OR row_key = 'student2' OR row_key = 'student4'
{noformat} 


was (Author: akumarb2010):
Can anyone please review. I verified in few cases. 
This patch is working for below queries(with select * ).

{noformat}
SELECT * FROM hbase.`students1` t where t.account.name = 'Bob' AND t.address.zipcode = '12345'

SELECT * FROM hbase.`students1` t where t.account.name = 'Bob' AND t.address.zipcode = '12345'
OR t.account.name = 'Frank' OR t.account.name = 'Mary'

SELECT * FROM hbase.`students1` t where t.account.name = 'Bob' OR t.account.name = 'Frank'
OR  t.account.name = 'Mary' OR  t.account.name = 'Alice'
{noformat}

But when we select any field like below, then it's not even calling HBasePushFilterIntoScan.matches.
Is this expected?

{noformat}
SELECT  CAST(account['name'] as VarChar(20)), CAST (address['state'] as VarChar(20)), CAST
(address['street'] as VarChar(20)), CAST (address['zipcode'] as VarChar(20))  FROM hbase.`students`
{noformat} 

> HBase predicate pushdown filters are not getting applied
> --------------------------------------------------------
>
>                 Key: DRILL-1403
>                 URL: https://issues.apache.org/jira/browse/DRILL-1403
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Functions - Drill
>            Reporter: B Anil Kumar
>              Labels: patch
>         Attachments: 0001-DRILL-1403.patch
>
>
> It seems, due to latest changes HBase predicate pushdown is not working



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

Mime
View raw message