You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2022/11/25 13:06:00 UTC

[jira] [Work logged] (HIVE-26778) Pushdown Date data type to metastore via direct sql / JDO

     [ https://issues.apache.org/jira/browse/HIVE-26778?focusedWorklogId=828950&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-828950 ]

ASF GitHub Bot logged work on HIVE-26778:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 25/Nov/22 13:05
            Start Date: 25/Nov/22 13:05
    Worklog Time Spent: 10m 
      Work Description: shameersss1 opened a new pull request, #3807:
URL: https://github.com/apache/hive/pull/3807

   <!--
   Thanks for sending a pull request!  Here are some tips for you:
     1. If this is your first time, please read our contributor guidelines: https://cwiki.apache.org/confluence/display/Hive/HowToContribute
     2. Ensure that you have created an issue on the Hive project JIRA: https://issues.apache.org/jira/projects/HIVE/summary
     3. Ensure you have added or run the appropriate tests for your PR: 
     4. If the PR is unfinished, add '[WIP]' in your PR title, e.g., '[WIP]HIVE-XXXXX:  Your PR title ...'.
     5. Be sure to keep the PR description updated to reflect all changes.
     6. Please write your PR title to summarize what this PR proposes.
     7. If possible, provide a concise example to reproduce the issue for a faster review.
   
   -->
   
   ### What changes were proposed in this pull request?
   Change the filter parser to process the new date data type filter generated by CBO to be pushed down the filter predicate to the metastore
   
   
   ### Why are the changes needed?
   Refer the description in https://issues.apache.org/jira/browse/HIVE-26778
   
   ### Does this PR introduce _any_ user-facing change?
   No
   
   
   ### How was this patch tested?
   1. Manual testing
   2. Running existing Hive tests
   




Issue Time Tracking
-------------------

            Worklog Id:     (was: 828950)
    Remaining Estimate: 0h
            Time Spent: 10m

> Pushdown Date data type to metastore via direct sql / JDO
> ---------------------------------------------------------
>
>                 Key: HIVE-26778
>                 URL: https://issues.apache.org/jira/browse/HIVE-26778
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Syed Shameerur Rahman
>            Assignee: Syed Shameerur Rahman
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> The original feature to push down date data type while doing partition pruning via direct sql / JDO was added as part of the jira : https://issues.apache.org/jira/browse/HIVE-5679
> Since the behavior of Hive has changed with CBO, Now when CBO is turned on, The date data types are not pushed down to metastore due to CBO adding extra keyword 'DATE' with the original filter since the filter parser is not handled to parse this extra keyword it fails and hence the date data type is not pushed down to the metastore.
> {code:java}
> select * from test_table where date_col = '2022-01-01';
> {code}
> When CBO is turned on, The filter predicate generated is date_col=DATE'2022-01-01'  which the filter parser fails to recognize.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)