FAQ
LOAD compilation does not set the outputs during semantic analysis resulting in no authorization checks being done for it.
--------------------------------------------------------------------------------------------------------------------------

Key: HIVE-2003
URL: https://issues.apache.org/jira/browse/HIVE-2003
Project: Hive
Issue Type: Bug
Components: Query Processor
Reporter: Krishna Kumar
Assignee: Krishna Kumar
Priority: Minor


The table/partition being loaded is not being added to outputs in the LoadSemanticAnalyzer.

--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

Search Discussions

  • Krishna Kumar (JIRA) at Feb 23, 2011 at 9:56 am
    [ https://issues.apache.org/jira/browse/HIVE-2003?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Krishna Kumar updated HIVE-2003:
    --------------------------------

    Attachment: HIVE-2003.patch.txt

    Patch attached.

    1. LoadSemanticAnalyzer adds the table/partition to the outputs

    2. QTestUtil.cleanup() used to call setup.tearDown, resulting in the commands run during createSources being run without a zookeeper server instance. So I have moved setup.tearDown to QTestUtil.shutdown().

    3. EnforceReadOnlyTables also needs to allow outputs during initialization loads/creates. So a session boolean indicates initialization phase.

    4. TestParse.vm and TestParseNegative.vm needed to be fixed too. Setup create a QTestUtil instance each time but tearDown seems to consider qt as a reusable instance. Changed tearDown to shutdown QTestUtil every time.

    5. Test results regenerated.
    LOAD compilation does not set the outputs during semantic analysis resulting in no authorization checks being done for it.
    --------------------------------------------------------------------------------------------------------------------------

    Key: HIVE-2003
    URL: https://issues.apache.org/jira/browse/HIVE-2003
    Project: Hive
    Issue Type: Bug
    Components: Query Processor
    Reporter: Krishna Kumar
    Assignee: Krishna Kumar
    Priority: Minor
    Attachments: HIVE-2003.patch.txt


    The table/partition being loaded is not being added to outputs in the LoadSemanticAnalyzer.
    --
    This message is automatically generated by JIRA.
    -
    For more information on JIRA, see: http://www.atlassian.com/software/jira
  • Krishna Kumar (JIRA) at Feb 23, 2011 at 9:58 am
    [ https://issues.apache.org/jira/browse/HIVE-2003?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12998276#comment-12998276 ]

    Krishna Kumar commented on HIVE-2003:
    -------------------------------------

    6. Loading a partitioned table without specifying partitions was being validated only if OVERWRITE was specified. This is not right IMO, so fixed this as well.
    LOAD compilation does not set the outputs during semantic analysis resulting in no authorization checks being done for it.
    --------------------------------------------------------------------------------------------------------------------------

    Key: HIVE-2003
    URL: https://issues.apache.org/jira/browse/HIVE-2003
    Project: Hive
    Issue Type: Bug
    Components: Query Processor
    Reporter: Krishna Kumar
    Assignee: Krishna Kumar
    Priority: Minor
    Attachments: HIVE-2003.patch.txt


    The table/partition being loaded is not being added to outputs in the LoadSemanticAnalyzer.
    --
    This message is automatically generated by JIRA.
    -
    For more information on JIRA, see: http://www.atlassian.com/software/jira
  • Krishna Kumar (JIRA) at Feb 23, 2011 at 10:39 am
    [ https://issues.apache.org/jira/browse/HIVE-2003?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Krishna Kumar updated HIVE-2003:
    --------------------------------

    Attachment: (was: HIVE-2003.patch.txt)
    LOAD compilation does not set the outputs during semantic analysis resulting in no authorization checks being done for it.
    --------------------------------------------------------------------------------------------------------------------------

    Key: HIVE-2003
    URL: https://issues.apache.org/jira/browse/HIVE-2003
    Project: Hive
    Issue Type: Bug
    Components: Query Processor
    Reporter: Krishna Kumar
    Assignee: Krishna Kumar
    Priority: Minor
    Attachments: HIVE-2003.patch.txt


    The table/partition being loaded is not being added to outputs in the LoadSemanticAnalyzer.
    --
    This message is automatically generated by JIRA.
    -
    For more information on JIRA, see: http://www.atlassian.com/software/jira
  • Krishna Kumar (JIRA) at Feb 23, 2011 at 10:39 am
    [ https://issues.apache.org/jira/browse/HIVE-2003?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Krishna Kumar updated HIVE-2003:
    --------------------------------

    Attachment: HIVE-2003.patch.txt

    One results file was diffed as binary so patch regenerated with --text
    LOAD compilation does not set the outputs during semantic analysis resulting in no authorization checks being done for it.
    --------------------------------------------------------------------------------------------------------------------------

    Key: HIVE-2003
    URL: https://issues.apache.org/jira/browse/HIVE-2003
    Project: Hive
    Issue Type: Bug
    Components: Query Processor
    Reporter: Krishna Kumar
    Assignee: Krishna Kumar
    Priority: Minor
    Attachments: HIVE-2003.patch.txt


    The table/partition being loaded is not being added to outputs in the LoadSemanticAnalyzer.
    --
    This message is automatically generated by JIRA.
    -
    For more information on JIRA, see: http://www.atlassian.com/software/jira
  • Krishna Kumar (JIRA) at Feb 28, 2011 at 5:52 pm
    [ https://issues.apache.org/jira/browse/HIVE-2003?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Krishna Kumar updated HIVE-2003:
    --------------------------------

    Status: Patch Available (was: Open)
    LOAD compilation does not set the outputs during semantic analysis resulting in no authorization checks being done for it.
    --------------------------------------------------------------------------------------------------------------------------

    Key: HIVE-2003
    URL: https://issues.apache.org/jira/browse/HIVE-2003
    Project: Hive
    Issue Type: Bug
    Components: Query Processor
    Reporter: Krishna Kumar
    Assignee: Krishna Kumar
    Priority: Minor
    Attachments: HIVE-2003.patch.txt


    The table/partition being loaded is not being added to outputs in the LoadSemanticAnalyzer.
    --
    This message is automatically generated by JIRA.
    -
    For more information on JIRA, see: http://www.atlassian.com/software/jira
  • Namit Jain (JIRA) at Mar 19, 2011 at 12:24 am
    [ https://issues.apache.org/jira/browse/HIVE-2003?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13008697#comment-13008697 ]

    Namit Jain commented on HIVE-2003:
    ----------------------------------

    Can you regenerate the patch ?
    I was having trouble applying it ?

    Also, can you create a review-board request ?
    LOAD compilation does not set the outputs during semantic analysis resulting in no authorization checks being done for it.
    --------------------------------------------------------------------------------------------------------------------------

    Key: HIVE-2003
    URL: https://issues.apache.org/jira/browse/HIVE-2003
    Project: Hive
    Issue Type: Bug
    Components: Query Processor
    Reporter: Krishna Kumar
    Assignee: Krishna Kumar
    Priority: Minor
    Attachments: HIVE-2003.patch.txt


    The table/partition being loaded is not being added to outputs in the LoadSemanticAnalyzer.
    --
    This message is automatically generated by JIRA.
    For more information on JIRA, see: http://www.atlassian.com/software/jira
  • Namit Jain (JIRA) at Mar 19, 2011 at 12:24 am
    [ https://issues.apache.org/jira/browse/HIVE-2003?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Namit Jain updated HIVE-2003:
    -----------------------------

    Status: Open (was: Patch Available)
    LOAD compilation does not set the outputs during semantic analysis resulting in no authorization checks being done for it.
    --------------------------------------------------------------------------------------------------------------------------

    Key: HIVE-2003
    URL: https://issues.apache.org/jira/browse/HIVE-2003
    Project: Hive
    Issue Type: Bug
    Components: Query Processor
    Reporter: Krishna Kumar
    Assignee: Krishna Kumar
    Priority: Minor
    Attachments: HIVE-2003.patch.txt


    The table/partition being loaded is not being added to outputs in the LoadSemanticAnalyzer.
    --
    This message is automatically generated by JIRA.
    For more information on JIRA, see: http://www.atlassian.com/software/jira
  • Krishna Kumar (JIRA) at Mar 21, 2011 at 4:46 pm
    [ https://issues.apache.org/jira/browse/HIVE-2003?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Krishna Kumar updated HIVE-2003:
    --------------------------------

    Attachment: HIVE-2003.patch.1.txt

    Regenerated the patch.
    LOAD compilation does not set the outputs during semantic analysis resulting in no authorization checks being done for it.
    --------------------------------------------------------------------------------------------------------------------------

    Key: HIVE-2003
    URL: https://issues.apache.org/jira/browse/HIVE-2003
    Project: Hive
    Issue Type: Bug
    Components: Query Processor
    Reporter: Krishna Kumar
    Assignee: Krishna Kumar
    Priority: Minor
    Attachments: HIVE-2003.patch.1.txt, HIVE-2003.patch.txt


    The table/partition being loaded is not being added to outputs in the LoadSemanticAnalyzer.
    --
    This message is automatically generated by JIRA.
    For more information on JIRA, see: http://www.atlassian.com/software/jira
  • Krishna Kumar (JIRA) at Mar 21, 2011 at 4:48 pm
    [ https://issues.apache.org/jira/browse/HIVE-2003?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13009202#comment-13009202 ]

    Krishna Kumar commented on HIVE-2003:
    -------------------------------------

    Added to review board: https://reviews.apache.org/r/518/

    LOAD compilation does not set the outputs during semantic analysis resulting in no authorization checks being done for it.
    --------------------------------------------------------------------------------------------------------------------------

    Key: HIVE-2003
    URL: https://issues.apache.org/jira/browse/HIVE-2003
    Project: Hive
    Issue Type: Bug
    Components: Query Processor
    Reporter: Krishna Kumar
    Assignee: Krishna Kumar
    Priority: Minor
    Attachments: HIVE-2003.patch.1.txt, HIVE-2003.patch.txt


    The table/partition being loaded is not being added to outputs in the LoadSemanticAnalyzer.
    --
    This message is automatically generated by JIRA.
    For more information on JIRA, see: http://www.atlassian.com/software/jira
  • Krishna Kumar (JIRA) at Mar 21, 2011 at 4:52 pm
    [ https://issues.apache.org/jira/browse/HIVE-2003?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13009203#comment-13009203 ]

    Krishna Kumar commented on HIVE-2003:
    -------------------------------------

    For #4 above, I have taken now the same approach as in TestCliDriver/TestNegativeCliDriver, reusing the QTestUtil instance. Needed to clear out inputs/outputs for this to work.
    LOAD compilation does not set the outputs during semantic analysis resulting in no authorization checks being done for it.
    --------------------------------------------------------------------------------------------------------------------------

    Key: HIVE-2003
    URL: https://issues.apache.org/jira/browse/HIVE-2003
    Project: Hive
    Issue Type: Bug
    Components: Query Processor
    Reporter: Krishna Kumar
    Assignee: Krishna Kumar
    Priority: Minor
    Attachments: HIVE-2003.patch.1.txt, HIVE-2003.patch.txt


    The table/partition being loaded is not being added to outputs in the LoadSemanticAnalyzer.
    --
    This message is automatically generated by JIRA.
    For more information on JIRA, see: http://www.atlassian.com/software/jira
  • Krishna Kumar (JIRA) at Mar 22, 2011 at 5:23 pm
    [ https://issues.apache.org/jira/browse/HIVE-2003?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Krishna Kumar updated HIVE-2003:
    --------------------------------

    Status: Patch Available (was: Open)

    Please review asap as there are lots of changes to q.out files and any delay may cause another conflict/resolution cycle.
    LOAD compilation does not set the outputs during semantic analysis resulting in no authorization checks being done for it.
    --------------------------------------------------------------------------------------------------------------------------

    Key: HIVE-2003
    URL: https://issues.apache.org/jira/browse/HIVE-2003
    Project: Hive
    Issue Type: Bug
    Components: Query Processor
    Reporter: Krishna Kumar
    Assignee: Krishna Kumar
    Priority: Minor
    Attachments: HIVE-2003.patch.1.txt, HIVE-2003.patch.txt


    The table/partition being loaded is not being added to outputs in the LoadSemanticAnalyzer.
    --
    This message is automatically generated by JIRA.
    For more information on JIRA, see: http://www.atlassian.com/software/jira
  • Namit Jain (JIRA) at Mar 22, 2011 at 5:49 pm
    [ https://issues.apache.org/jira/browse/HIVE-2003?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13009739#comment-13009739 ]

    Namit Jain commented on HIVE-2003:
    ----------------------------------

    I will take a look right away
    LOAD compilation does not set the outputs during semantic analysis resulting in no authorization checks being done for it.
    --------------------------------------------------------------------------------------------------------------------------

    Key: HIVE-2003
    URL: https://issues.apache.org/jira/browse/HIVE-2003
    Project: Hive
    Issue Type: Bug
    Components: Query Processor
    Reporter: Krishna Kumar
    Assignee: Krishna Kumar
    Priority: Minor
    Attachments: HIVE-2003.patch.1.txt, HIVE-2003.patch.txt


    The table/partition being loaded is not being added to outputs in the LoadSemanticAnalyzer.
    --
    This message is automatically generated by JIRA.
    For more information on JIRA, see: http://www.atlassian.com/software/jira
  • Namit Jain (JIRA) at Mar 22, 2011 at 6:44 pm
    [ https://issues.apache.org/jira/browse/HIVE-2003?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13009772#comment-13009772 ]

    Namit Jain commented on HIVE-2003:
    ----------------------------------

    Instead of adding a new configuration parameter which is being checked in
    EnforceReadOnlyTables, it might be easier to remove EnforceReadOnlyTables
    from the hive.exec.pre.hooks at creation time. But, this can be done in a
    follow-up also (if other things look good).

    Will commit if tests pass, please file a follow-up jira for the cleanup mentioned
    above.
    LOAD compilation does not set the outputs during semantic analysis resulting in no authorization checks being done for it.
    --------------------------------------------------------------------------------------------------------------------------

    Key: HIVE-2003
    URL: https://issues.apache.org/jira/browse/HIVE-2003
    Project: Hive
    Issue Type: Bug
    Components: Query Processor
    Reporter: Krishna Kumar
    Assignee: Krishna Kumar
    Priority: Minor
    Attachments: HIVE-2003.patch.1.txt, HIVE-2003.patch.txt


    The table/partition being loaded is not being added to outputs in the LoadSemanticAnalyzer.
    --
    This message is automatically generated by JIRA.
    For more information on JIRA, see: http://www.atlassian.com/software/jira
  • Namit Jain (JIRA) at Mar 22, 2011 at 11:10 pm
    [ https://issues.apache.org/jira/browse/HIVE-2003?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Namit Jain updated HIVE-2003:
    -----------------------------

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

    Committed. Thanks Krishna
    LOAD compilation does not set the outputs during semantic analysis resulting in no authorization checks being done for it.
    --------------------------------------------------------------------------------------------------------------------------

    Key: HIVE-2003
    URL: https://issues.apache.org/jira/browse/HIVE-2003
    Project: Hive
    Issue Type: Bug
    Components: Query Processor
    Reporter: Krishna Kumar
    Assignee: Krishna Kumar
    Priority: Minor
    Attachments: HIVE-2003.patch.1.txt, HIVE-2003.patch.txt


    The table/partition being loaded is not being added to outputs in the LoadSemanticAnalyzer.
    --
    This message is automatically generated by JIRA.
    For more information on JIRA, see: http://www.atlassian.com/software/jira
  • Carl Steinbach (JIRA) at Jun 30, 2011 at 7:28 pm
    [ https://issues.apache.org/jira/browse/HIVE-2003?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Carl Steinbach updated HIVE-2003:
    ---------------------------------

    Component/s: Security
    Fix Version/s: 0.8.0
    LOAD compilation does not set the outputs during semantic analysis resulting in no authorization checks being done for it.
    --------------------------------------------------------------------------------------------------------------------------

    Key: HIVE-2003
    URL: https://issues.apache.org/jira/browse/HIVE-2003
    Project: Hive
    Issue Type: Bug
    Components: Query Processor, Security
    Reporter: Krishna Kumar
    Assignee: Krishna Kumar
    Priority: Minor
    Fix For: 0.8.0

    Attachments: HIVE-2003.patch.1.txt, HIVE-2003.patch.txt


    The table/partition being loaded is not being added to outputs in the LoadSemanticAnalyzer.
    --
    This message is automatically generated by JIRA.
    For more information on JIRA, see: http://www.atlassian.com/software/jira

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupdev @
categorieshive, hadoop
postedFeb 23, '11 at 9:32a
activeJun 30, '11 at 7:28p
posts16
users1
websitehive.apache.org

1 user in discussion

Carl Steinbach (JIRA): 16 posts

People

Translate

site design / logo © 2021 Grokbase