You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Namit Jain (JIRA)" <ji...@apache.org> on 2009/09/16 21:53:57 UTC

[jira] Created: (HIVE-838) in strict mode, no partition selected error

in strict mode, no partition selected error
-------------------------------------------

                 Key: HIVE-838
                 URL: https://issues.apache.org/jira/browse/HIVE-838
             Project: Hadoop Hive
          Issue Type: Bug
          Components: Query Processor
            Reporter: Namit Jain
            Assignee: Namit Jain



set hive.mapred.mode=strict;

select * from 
  (select count(1) from src 
    union all
   select count(1) from srcpart where ds = '2009-08-09'
  )x;


Is it a blocker for 0.4 ?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Reopened: (HIVE-838) in strict mode, no partition selected error

Posted by "Raghotham Murthy (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-838?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Raghotham Murthy reopened HIVE-838:
-----------------------------------


havent committed to 0.4 yet.

> in strict mode, no partition selected error
> -------------------------------------------
>
>                 Key: HIVE-838
>                 URL: https://issues.apache.org/jira/browse/HIVE-838
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Query Processor
>            Reporter: Namit Jain
>            Assignee: Namit Jain
>         Attachments: hive.838.1.patch, hive.838.2.patch
>
>
> set hive.mapred.mode=strict;
> select * from 
>   (select count(1) from src 
>     union all
>    select count(1) from srcpart where ds = '2009-08-09'
>   )x;
> Is it a blocker for 0.4 ?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-838) in strict mode, no partition selected error

Posted by "Raghotham Murthy (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-838?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12756237#action_12756237 ] 

Raghotham Murthy commented on HIVE-838:
---------------------------------------

i guess it would be good to include this fix in 0.4.

couple of comments:

1. can you change the query with the empty partition to be a non-aggregate query? need to make sure additional rows are not added to the result. something like:
{code}
select * from 
  (select count(1) from src 
    union all
   select 1 from srcpart where ds = '2009-08-09'
  )x;
{code}

2. remove the code instead of commenting it out.

> in strict mode, no partition selected error
> -------------------------------------------
>
>                 Key: HIVE-838
>                 URL: https://issues.apache.org/jira/browse/HIVE-838
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Query Processor
>            Reporter: Namit Jain
>            Assignee: Namit Jain
>         Attachments: hive.838.1.patch
>
>
> set hive.mapred.mode=strict;
> select * from 
>   (select count(1) from src 
>     union all
>    select count(1) from srcpart where ds = '2009-08-09'
>   )x;
> Is it a blocker for 0.4 ?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (HIVE-838) in strict mode, no partition selected error

Posted by "Raghotham Murthy (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-838?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Raghotham Murthy resolved HIVE-838.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 0.4.0

committed to 0.4.

> in strict mode, no partition selected error
> -------------------------------------------
>
>                 Key: HIVE-838
>                 URL: https://issues.apache.org/jira/browse/HIVE-838
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Query Processor
>            Reporter: Namit Jain
>            Assignee: Namit Jain
>             Fix For: 0.4.0
>
>         Attachments: hive.838.1.patch, hive.838.2.patch
>
>
> set hive.mapred.mode=strict;
> select * from 
>   (select count(1) from src 
>     union all
>    select count(1) from srcpart where ds = '2009-08-09'
>   )x;
> Is it a blocker for 0.4 ?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HIVE-838) in strict mode, no partition selected error

Posted by "Namit Jain (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-838?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Namit Jain updated HIVE-838:
----------------------------

    Status: Patch Available  (was: Open)

> in strict mode, no partition selected error
> -------------------------------------------
>
>                 Key: HIVE-838
>                 URL: https://issues.apache.org/jira/browse/HIVE-838
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Query Processor
>            Reporter: Namit Jain
>            Assignee: Namit Jain
>         Attachments: hive.838.1.patch
>
>
> set hive.mapred.mode=strict;
> select * from 
>   (select count(1) from src 
>     union all
>    select count(1) from srcpart where ds = '2009-08-09'
>   )x;
> Is it a blocker for 0.4 ?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HIVE-838) in strict mode, no partition selected error

Posted by "Namit Jain (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-838?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Namit Jain updated HIVE-838:
----------------------------

    Attachment: hive.838.1.patch

> in strict mode, no partition selected error
> -------------------------------------------
>
>                 Key: HIVE-838
>                 URL: https://issues.apache.org/jira/browse/HIVE-838
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Query Processor
>            Reporter: Namit Jain
>            Assignee: Namit Jain
>         Attachments: hive.838.1.patch
>
>
> set hive.mapred.mode=strict;
> select * from 
>   (select count(1) from src 
>     union all
>    select count(1) from srcpart where ds = '2009-08-09'
>   )x;
> Is it a blocker for 0.4 ?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HIVE-838) in strict mode, no partition selected error

Posted by "Namit Jain (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-838?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Namit Jain updated HIVE-838:
----------------------------

    Attachment: hive.838.2.patch

incorporated Raghu's comments

> in strict mode, no partition selected error
> -------------------------------------------
>
>                 Key: HIVE-838
>                 URL: https://issues.apache.org/jira/browse/HIVE-838
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Query Processor
>            Reporter: Namit Jain
>            Assignee: Namit Jain
>         Attachments: hive.838.1.patch, hive.838.2.patch
>
>
> set hive.mapred.mode=strict;
> select * from 
>   (select count(1) from src 
>     union all
>    select count(1) from srcpart where ds = '2009-08-09'
>   )x;
> Is it a blocker for 0.4 ?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HIVE-838) in strict mode, no partition selected error

Posted by "Raghotham Murthy (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-838?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Raghotham Murthy updated HIVE-838:
----------------------------------

      Resolution: Fixed
    Release Note: 
HIVE-838. In strict mode, remove error if no partition is selected.
(Namit Jain via rmurthy)

    Hadoop Flags: [Reviewed]
          Status: Resolved  (was: Patch Available)

committed. thanks namit.

> in strict mode, no partition selected error
> -------------------------------------------
>
>                 Key: HIVE-838
>                 URL: https://issues.apache.org/jira/browse/HIVE-838
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Query Processor
>            Reporter: Namit Jain
>            Assignee: Namit Jain
>         Attachments: hive.838.1.patch, hive.838.2.patch
>
>
> set hive.mapred.mode=strict;
> select * from 
>   (select count(1) from src 
>     union all
>    select count(1) from srcpart where ds = '2009-08-09'
>   )x;
> Is it a blocker for 0.4 ?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.