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 2008/12/03 19:37:44 UTC

[jira] Created: (HIVE-108) sampling does not use internal column name

sampling does not use internal column name 
-------------------------------------------

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


sampling does not use internal column name, it uses column table name instead - which will not work in case there is any operator between table
scan and sampling, which is possible with column pruning.

The following test breaks: 

(assuming srcbucket has more than 1 column: in this case 2 columns: key and value)

-- no input pruning, sample filter
EXPLAIN
SELECT s.key
FROM srcbucket TABLESAMPLE (BUCKET 1 OUT OF 5 on key) s;

SELECT s.key
FROM srcbucket TABLESAMPLE (BUCKET 1 OUT OF 5 on key) s;


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


[jira] Updated: (HIVE-108) sampling does not use internal column name

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

Namit Jain updated HIVE-108:
----------------------------

    Attachment: patch.txt

> sampling does not use internal column name 
> -------------------------------------------
>
>                 Key: HIVE-108
>                 URL: https://issues.apache.org/jira/browse/HIVE-108
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Query Processor
>            Reporter: Namit Jain
>            Assignee: Namit Jain
>         Attachments: patch.txt
>
>
> sampling does not use internal column name, it uses column table name instead - which will not work in case there is any operator between table
> scan and sampling, which is possible with column pruning.
> The following test breaks: 
> (assuming srcbucket has more than 1 column: in this case 2 columns: key and value)
> -- no input pruning, sample filter
> EXPLAIN
> SELECT s.key
> FROM srcbucket TABLESAMPLE (BUCKET 1 OUT OF 5 on key) s;
> SELECT s.key
> FROM srcbucket TABLESAMPLE (BUCKET 1 OUT OF 5 on key) s;

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


[jira] Updated: (HIVE-108) sampling does not use internal column name

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

Namit Jain updated HIVE-108:
----------------------------

    Status: Patch Available  (was: Open)

> sampling does not use internal column name 
> -------------------------------------------
>
>                 Key: HIVE-108
>                 URL: https://issues.apache.org/jira/browse/HIVE-108
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Query Processor
>            Reporter: Namit Jain
>            Assignee: Namit Jain
>         Attachments: patch.txt
>
>
> sampling does not use internal column name, it uses column table name instead - which will not work in case there is any operator between table
> scan and sampling, which is possible with column pruning.
> The following test breaks: 
> (assuming srcbucket has more than 1 column: in this case 2 columns: key and value)
> -- no input pruning, sample filter
> EXPLAIN
> SELECT s.key
> FROM srcbucket TABLESAMPLE (BUCKET 1 OUT OF 5 on key) s;
> SELECT s.key
> FROM srcbucket TABLESAMPLE (BUCKET 1 OUT OF 5 on key) s;

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


[jira] Commented: (HIVE-108) sampling does not use internal column name

Posted by "Namit Jain (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-108?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12652895#action_12652895 ] 

Namit Jain commented on HIVE-108:
---------------------------------

ls
    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.186 sec
    [junit] Running org.apache.hadoop.hive.serde2.objectinspector.TestReflectionObjectIn\
spectors
    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.171 sec
    [junit] Running org.apache.hadoop.hive.serde2.objectinspector.TestStandardObjectInsp\
ectors
    [junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 0.165 sec
    [junit] Running org.apache.hadoop.hive.serde2.objectinspector.TestThriftObjectInspec\
tors
    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.178 sec
    [junit] Running org.apache.hadoop.hive.serde2.objectinspector.TestUnionStructObjectI\
nspector
    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.165 sec

BUILD SUCCESSFUL
Total time: 15 minutes 4 seconds



All tests passed

> sampling does not use internal column name 
> -------------------------------------------
>
>                 Key: HIVE-108
>                 URL: https://issues.apache.org/jira/browse/HIVE-108
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Query Processor
>            Reporter: Namit Jain
>            Assignee: Namit Jain
>         Attachments: patch.txt
>
>
> sampling does not use internal column name, it uses column table name instead - which will not work in case there is any operator between table
> scan and sampling, which is possible with column pruning.
> The following test breaks: 
> (assuming srcbucket has more than 1 column: in this case 2 columns: key and value)
> -- no input pruning, sample filter
> EXPLAIN
> SELECT s.key
> FROM srcbucket TABLESAMPLE (BUCKET 1 OUT OF 5 on key) s;
> SELECT s.key
> FROM srcbucket TABLESAMPLE (BUCKET 1 OUT OF 5 on key) s;

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


[jira] Commented: (HIVE-108) sampling does not use internal column name

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

Raghotham Murthy commented on HIVE-108:
---------------------------------------

+1

looks good.

> sampling does not use internal column name 
> -------------------------------------------
>
>                 Key: HIVE-108
>                 URL: https://issues.apache.org/jira/browse/HIVE-108
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Query Processor
>            Reporter: Namit Jain
>            Assignee: Namit Jain
>         Attachments: patch.txt
>
>
> sampling does not use internal column name, it uses column table name instead - which will not work in case there is any operator between table
> scan and sampling, which is possible with column pruning.
> The following test breaks: 
> (assuming srcbucket has more than 1 column: in this case 2 columns: key and value)
> -- no input pruning, sample filter
> EXPLAIN
> SELECT s.key
> FROM srcbucket TABLESAMPLE (BUCKET 1 OUT OF 5 on key) s;
> SELECT s.key
> FROM srcbucket TABLESAMPLE (BUCKET 1 OUT OF 5 on key) s;

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


[jira] Commented: (HIVE-108) sampling does not use internal column name

Posted by "Zheng Shao (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-108?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12652997#action_12652997 ] 

Zheng Shao commented on HIVE-108:
---------------------------------

Committed. svn revision 723097

> sampling does not use internal column name 
> -------------------------------------------
>
>                 Key: HIVE-108
>                 URL: https://issues.apache.org/jira/browse/HIVE-108
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Query Processor
>            Reporter: Namit Jain
>            Assignee: Namit Jain
>         Attachments: patch.txt
>
>
> sampling does not use internal column name, it uses column table name instead - which will not work in case there is any operator between table
> scan and sampling, which is possible with column pruning.
> The following test breaks: 
> (assuming srcbucket has more than 1 column: in this case 2 columns: key and value)
> -- no input pruning, sample filter
> EXPLAIN
> SELECT s.key
> FROM srcbucket TABLESAMPLE (BUCKET 1 OUT OF 5 on key) s;
> SELECT s.key
> FROM srcbucket TABLESAMPLE (BUCKET 1 OUT OF 5 on key) s;

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


[jira] Updated: (HIVE-108) sampling does not use internal column name

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

Carl Steinbach updated HIVE-108:
--------------------------------

    Fix Version/s: 0.3.0

> sampling does not use internal column name 
> -------------------------------------------
>
>                 Key: HIVE-108
>                 URL: https://issues.apache.org/jira/browse/HIVE-108
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Query Processor
>            Reporter: Namit Jain
>            Assignee: Namit Jain
>             Fix For: 0.3.0
>
>         Attachments: patch.txt
>
>
> sampling does not use internal column name, it uses column table name instead - which will not work in case there is any operator between table
> scan and sampling, which is possible with column pruning.
> The following test breaks: 
> (assuming srcbucket has more than 1 column: in this case 2 columns: key and value)
> -- no input pruning, sample filter
> EXPLAIN
> SELECT s.key
> FROM srcbucket TABLESAMPLE (BUCKET 1 OUT OF 5 on key) s;
> SELECT s.key
> FROM srcbucket TABLESAMPLE (BUCKET 1 OUT OF 5 on key) s;

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


[jira] Updated: (HIVE-108) sampling does not use internal column name

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

Zheng Shao updated HIVE-108:
----------------------------

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

HIVE-108. Sampling to use internal column name. (Namit through zshao)


> sampling does not use internal column name 
> -------------------------------------------
>
>                 Key: HIVE-108
>                 URL: https://issues.apache.org/jira/browse/HIVE-108
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Query Processor
>            Reporter: Namit Jain
>            Assignee: Namit Jain
>         Attachments: patch.txt
>
>
> sampling does not use internal column name, it uses column table name instead - which will not work in case there is any operator between table
> scan and sampling, which is possible with column pruning.
> The following test breaks: 
> (assuming srcbucket has more than 1 column: in this case 2 columns: key and value)
> -- no input pruning, sample filter
> EXPLAIN
> SELECT s.key
> FROM srcbucket TABLESAMPLE (BUCKET 1 OUT OF 5 on key) s;
> SELECT s.key
> FROM srcbucket TABLESAMPLE (BUCKET 1 OUT OF 5 on key) s;

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