Grokbase Groups Hive dev July 2011
FAQ

[Hive-dev] [jira] [Updated] (HIVE-1218) CREATE TABLE t LIKE some_view should create a new empty base table, but instead creates a copy of view

Charles Chen (JIRA)
Jul 8, 2011 at 10:24 pm
[ https://issues.apache.org/jira/browse/HIVE-1218?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Charles Chen updated HIVE-1218:
-------------------------------

Status: Patch Available (was: Open)
CREATE TABLE t LIKE some_view should create a new empty base table, but instead creates a copy of view
------------------------------------------------------------------------------------------------------

Key: HIVE-1218
URL: https://issues.apache.org/jira/browse/HIVE-1218
Project: Hive
Issue Type: Bug
Components: Metastore
Affects Versions: 0.5.0
Reporter: John Sichi
Assignee: Charles Chen
Attachments: HIVE-1218v0.patch


I think it should copy only the column definitions from the view metadata. Currently it is copying the entire descriptor, resulting in a new view instead of a new base table.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
reply

Search Discussions

21 responses

  • Charles Chen (JIRA) at Jul 8, 2011 at 10:24 pm
    [ https://issues.apache.org/jira/browse/HIVE-1218?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Charles Chen updated HIVE-1218:
    -------------------------------

    Attachment: HIVE-1218v0.patch
    CREATE TABLE t LIKE some_view should create a new empty base table, but instead creates a copy of view
    ------------------------------------------------------------------------------------------------------

    Key: HIVE-1218
    URL: https://issues.apache.org/jira/browse/HIVE-1218
    Project: Hive
    Issue Type: Bug
    Components: Metastore
    Affects Versions: 0.5.0
    Reporter: John Sichi
    Assignee: Charles Chen
    Attachments: HIVE-1218v0.patch


    I think it should copy only the column definitions from the view metadata. Currently it is copying the entire descriptor, resulting in a new view instead of a new base table.
    --
    This message is automatically generated by JIRA.
    For more information on JIRA, see: http://www.atlassian.com/software/jira
  • John Sichi (JIRA) at Jul 13, 2011 at 7:14 am
    [ https://issues.apache.org/jira/browse/HIVE-1218?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    John Sichi updated HIVE-1218:
    -----------------------------

    Status: Open (was: Patch Available)
    CREATE TABLE t LIKE some_view should create a new empty base table, but instead creates a copy of view
    ------------------------------------------------------------------------------------------------------

    Key: HIVE-1218
    URL: https://issues.apache.org/jira/browse/HIVE-1218
    Project: Hive
    Issue Type: Bug
    Components: Metastore
    Affects Versions: 0.5.0
    Reporter: John Sichi
    Assignee: Charles Chen
    Attachments: HIVE-1218v0.patch


    I think it should copy only the column definitions from the view metadata. Currently it is copying the entire descriptor, resulting in a new view instead of a new base table.
    --
    This message is automatically generated by JIRA.
    For more information on JIRA, see: http://www.atlassian.com/software/jira
  • Charles Chen (JIRA) at Jul 13, 2011 at 11:37 pm
    [ https://issues.apache.org/jira/browse/HIVE-1218?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Charles Chen updated HIVE-1218:
    -------------------------------

    Attachment: HIVE-1218v2.patch
    CREATE TABLE t LIKE some_view should create a new empty base table, but instead creates a copy of view
    ------------------------------------------------------------------------------------------------------

    Key: HIVE-1218
    URL: https://issues.apache.org/jira/browse/HIVE-1218
    Project: Hive
    Issue Type: Bug
    Components: Metastore
    Affects Versions: 0.5.0
    Reporter: John Sichi
    Assignee: Charles Chen
    Attachments: HIVE-1218v0.patch, HIVE-1218v2.patch


    I think it should copy only the column definitions from the view metadata. Currently it is copying the entire descriptor, resulting in a new view instead of a new base table.
    --
    This message is automatically generated by JIRA.
    For more information on JIRA, see: http://www.atlassian.com/software/jira
  • Charles Chen (JIRA) at Jul 13, 2011 at 11:37 pm
    [ https://issues.apache.org/jira/browse/HIVE-1218?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Charles Chen updated HIVE-1218:
    -------------------------------

    Status: Patch Available (was: Open)
    CREATE TABLE t LIKE some_view should create a new empty base table, but instead creates a copy of view
    ------------------------------------------------------------------------------------------------------

    Key: HIVE-1218
    URL: https://issues.apache.org/jira/browse/HIVE-1218
    Project: Hive
    Issue Type: Bug
    Components: Metastore
    Affects Versions: 0.5.0
    Reporter: John Sichi
    Assignee: Charles Chen
    Attachments: HIVE-1218v0.patch, HIVE-1218v2.patch


    I think it should copy only the column definitions from the view metadata. Currently it is copying the entire descriptor, resulting in a new view instead of a new base table.
    --
    This message is automatically generated by JIRA.
    For more information on JIRA, see: http://www.atlassian.com/software/jira
  • Charles Chen (JIRA) at Jul 14, 2011 at 6:56 pm
    [ https://issues.apache.org/jira/browse/HIVE-1218?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Charles Chen updated HIVE-1218:
    -------------------------------

    Attachment: HIVE-1218v3.patch
    CREATE TABLE t LIKE some_view should create a new empty base table, but instead creates a copy of view
    ------------------------------------------------------------------------------------------------------

    Key: HIVE-1218
    URL: https://issues.apache.org/jira/browse/HIVE-1218
    Project: Hive
    Issue Type: Bug
    Components: Metastore
    Affects Versions: 0.5.0
    Reporter: John Sichi
    Assignee: Charles Chen
    Attachments: HIVE-1218v0.patch, HIVE-1218v2.patch, HIVE-1218v3.patch


    I think it should copy only the column definitions from the view metadata. Currently it is copying the entire descriptor, resulting in a new view instead of a new base table.
    --
    This message is automatically generated by JIRA.
    For more information on JIRA, see: http://www.atlassian.com/software/jira
  • Charles Chen (JIRA) at Jul 14, 2011 at 6:56 pm
    [ https://issues.apache.org/jira/browse/HIVE-1218?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Charles Chen updated HIVE-1218:
    -------------------------------

    Attachment: HIVE-1218v3.patch
    CREATE TABLE t LIKE some_view should create a new empty base table, but instead creates a copy of view
    ------------------------------------------------------------------------------------------------------

    Key: HIVE-1218
    URL: https://issues.apache.org/jira/browse/HIVE-1218
    Project: Hive
    Issue Type: Bug
    Components: Metastore
    Affects Versions: 0.5.0
    Reporter: John Sichi
    Assignee: Charles Chen
    Attachments: HIVE-1218v0.patch, HIVE-1218v2.patch, HIVE-1218v3.patch


    I think it should copy only the column definitions from the view metadata. Currently it is copying the entire descriptor, resulting in a new view instead of a new base table.
    --
    This message is automatically generated by JIRA.
    For more information on JIRA, see: http://www.atlassian.com/software/jira
  • Charles Chen (JIRA) at Jul 14, 2011 at 6:56 pm
    [ https://issues.apache.org/jira/browse/HIVE-1218?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Charles Chen updated HIVE-1218:
    -------------------------------

    Attachment: (was: HIVE-1218v3.patch)
    CREATE TABLE t LIKE some_view should create a new empty base table, but instead creates a copy of view
    ------------------------------------------------------------------------------------------------------

    Key: HIVE-1218
    URL: https://issues.apache.org/jira/browse/HIVE-1218
    Project: Hive
    Issue Type: Bug
    Components: Metastore
    Affects Versions: 0.5.0
    Reporter: John Sichi
    Assignee: Charles Chen
    Attachments: HIVE-1218v0.patch, HIVE-1218v2.patch, HIVE-1218v3.patch


    I think it should copy only the column definitions from the view metadata. Currently it is copying the entire descriptor, resulting in a new view instead of a new base table.
    --
    This message is automatically generated by JIRA.
    For more information on JIRA, see: http://www.atlassian.com/software/jira
  • John Sichi (JIRA) at Jul 14, 2011 at 8:01 pm
    [ https://issues.apache.org/jira/browse/HIVE-1218?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    John Sichi updated HIVE-1218:
    -----------------------------

    Status: Open (was: Patch Available)

    Added some comments on review board.
    CREATE TABLE t LIKE some_view should create a new empty base table, but instead creates a copy of view
    ------------------------------------------------------------------------------------------------------

    Key: HIVE-1218
    URL: https://issues.apache.org/jira/browse/HIVE-1218
    Project: Hive
    Issue Type: Bug
    Components: Metastore
    Affects Versions: 0.5.0
    Reporter: John Sichi
    Assignee: Charles Chen
    Attachments: HIVE-1218v0.patch, HIVE-1218v2.patch, HIVE-1218v3.patch


    I think it should copy only the column definitions from the view metadata. Currently it is copying the entire descriptor, resulting in a new view instead of a new base table.
    --
    This message is automatically generated by JIRA.
    For more information on JIRA, see: http://www.atlassian.com/software/jira
  • John Sichi (JIRA) at Jul 14, 2011 at 9:59 pm
    [ https://issues.apache.org/jira/browse/HIVE-1218?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    John Sichi updated HIVE-1218:
    -----------------------------

    Fix Version/s: 0.8.0
    Affects Version/s: (was: 0.5.0)
    0.6.0
    Hadoop Flags: [Reviewed]
    Status: Patch Available (was: Open)

    +1. Will commit when tests pass.
    CREATE TABLE t LIKE some_view should create a new empty base table, but instead creates a copy of view
    ------------------------------------------------------------------------------------------------------

    Key: HIVE-1218
    URL: https://issues.apache.org/jira/browse/HIVE-1218
    Project: Hive
    Issue Type: Bug
    Components: Metastore
    Affects Versions: 0.6.0
    Reporter: John Sichi
    Assignee: Charles Chen
    Fix For: 0.8.0

    Attachments: HIVE-1218v0.patch, HIVE-1218v2.patch, HIVE-1218v3.patch


    I think it should copy only the column definitions from the view metadata. Currently it is copying the entire descriptor, resulting in a new view instead of a new base table.
    --
    This message is automatically generated by JIRA.
    For more information on JIRA, see: http://www.atlassian.com/software/jira
  • Charles Chen (JIRA) at Jul 14, 2011 at 10:02 pm
    [ https://issues.apache.org/jira/browse/HIVE-1218?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Charles Chen updated HIVE-1218:
    -------------------------------

    Attachment: HIVE-1218v4.patch
    CREATE TABLE t LIKE some_view should create a new empty base table, but instead creates a copy of view
    ------------------------------------------------------------------------------------------------------

    Key: HIVE-1218
    URL: https://issues.apache.org/jira/browse/HIVE-1218
    Project: Hive
    Issue Type: Bug
    Components: Metastore
    Affects Versions: 0.6.0
    Reporter: John Sichi
    Assignee: Charles Chen
    Fix For: 0.8.0

    Attachments: HIVE-1218v0.patch, HIVE-1218v2.patch, HIVE-1218v3.patch, HIVE-1218v4.patch


    I think it should copy only the column definitions from the view metadata. Currently it is copying the entire descriptor, resulting in a new view instead of a new base table.
    --
    This message is automatically generated by JIRA.
    For more information on JIRA, see: http://www.atlassian.com/software/jira
  • Charles Chen (JIRA) at Jul 14, 2011 at 10:14 pm
    [ https://issues.apache.org/jira/browse/HIVE-1218?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Charles Chen updated HIVE-1218:
    -------------------------------

    Attachment: HIVE-1218v5.patch
    CREATE TABLE t LIKE some_view should create a new empty base table, but instead creates a copy of view
    ------------------------------------------------------------------------------------------------------

    Key: HIVE-1218
    URL: https://issues.apache.org/jira/browse/HIVE-1218
    Project: Hive
    Issue Type: Bug
    Components: Metastore
    Affects Versions: 0.6.0
    Reporter: John Sichi
    Assignee: Charles Chen
    Fix For: 0.8.0

    Attachments: HIVE-1218v0.patch, HIVE-1218v2.patch, HIVE-1218v3.patch, HIVE-1218v4.patch, HIVE-1218v5.patch


    I think it should copy only the column definitions from the view metadata. Currently it is copying the entire descriptor, resulting in a new view instead of a new base table.
    --
    This message is automatically generated by JIRA.
    For more information on JIRA, see: http://www.atlassian.com/software/jira
  • Charles Chen (JIRA) at Jul 15, 2011 at 12:04 am
    [ https://issues.apache.org/jira/browse/HIVE-1218?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Charles Chen updated HIVE-1218:
    -------------------------------

    Status: Patch Available (was: Open)
    CREATE TABLE t LIKE some_view should create a new empty base table, but instead creates a copy of view
    ------------------------------------------------------------------------------------------------------

    Key: HIVE-1218
    URL: https://issues.apache.org/jira/browse/HIVE-1218
    Project: Hive
    Issue Type: Bug
    Components: Metastore
    Affects Versions: 0.6.0
    Reporter: John Sichi
    Assignee: Charles Chen
    Fix For: 0.8.0

    Attachments: HIVE-1218v0.patch, HIVE-1218v2.patch, HIVE-1218v3.patch, HIVE-1218v4.patch, HIVE-1218v5.patch


    I think it should copy only the column definitions from the view metadata. Currently it is copying the entire descriptor, resulting in a new view instead of a new base table.
    --
    This message is automatically generated by JIRA.
    For more information on JIRA, see: http://www.atlassian.com/software/jira
  • Charles Chen (JIRA) at Jul 15, 2011 at 12:04 am
    [ https://issues.apache.org/jira/browse/HIVE-1218?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Charles Chen updated HIVE-1218:
    -------------------------------

    Status: Open (was: Patch Available)
    CREATE TABLE t LIKE some_view should create a new empty base table, but instead creates a copy of view
    ------------------------------------------------------------------------------------------------------

    Key: HIVE-1218
    URL: https://issues.apache.org/jira/browse/HIVE-1218
    Project: Hive
    Issue Type: Bug
    Components: Metastore
    Affects Versions: 0.6.0
    Reporter: John Sichi
    Assignee: Charles Chen
    Fix For: 0.8.0

    Attachments: HIVE-1218v0.patch, HIVE-1218v2.patch, HIVE-1218v3.patch, HIVE-1218v4.patch, HIVE-1218v5.patch


    I think it should copy only the column definitions from the view metadata. Currently it is copying the entire descriptor, resulting in a new view instead of a new base table.
    --
    This message is automatically generated by JIRA.
    For more information on JIRA, see: http://www.atlassian.com/software/jira
  • John Sichi (JIRA) at Jul 15, 2011 at 7:18 pm
    [ https://issues.apache.org/jira/browse/HIVE-1218?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    John Sichi updated HIVE-1218:
    -----------------------------

    Assignee: George Djabarov (was: Charles Chen)
    Status: Open (was: Patch Available)
    CREATE TABLE t LIKE some_view should create a new empty base table, but instead creates a copy of view
    ------------------------------------------------------------------------------------------------------

    Key: HIVE-1218
    URL: https://issues.apache.org/jira/browse/HIVE-1218
    Project: Hive
    Issue Type: Bug
    Components: Metastore
    Affects Versions: 0.6.0
    Reporter: John Sichi
    Assignee: George Djabarov
    Fix For: 0.8.0

    Attachments: HIVE-1218v0.patch, HIVE-1218v2.patch, HIVE-1218v3.patch, HIVE-1218v4.patch, HIVE-1218v5.patch


    I think it should copy only the column definitions from the view metadata. Currently it is copying the entire descriptor, resulting in a new view instead of a new base table.
    --
    This message is automatically generated by JIRA.
    For more information on JIRA, see: http://www.atlassian.com/software/jira
  • Charles Chen (JIRA) at Jul 15, 2011 at 9:25 pm
    [ https://issues.apache.org/jira/browse/HIVE-1218?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Charles Chen updated HIVE-1218:
    -------------------------------

    Attachment: HIVE-1218v6.patch
    CREATE TABLE t LIKE some_view should create a new empty base table, but instead creates a copy of view
    ------------------------------------------------------------------------------------------------------

    Key: HIVE-1218
    URL: https://issues.apache.org/jira/browse/HIVE-1218
    Project: Hive
    Issue Type: Bug
    Components: Metastore
    Affects Versions: 0.6.0
    Reporter: John Sichi
    Assignee: Charles Chen
    Fix For: 0.8.0

    Attachments: HIVE-1218v0.patch, HIVE-1218v2.patch, HIVE-1218v3.patch, HIVE-1218v4.patch, HIVE-1218v5.patch, HIVE-1218v6.patch


    I think it should copy only the column definitions from the view metadata. Currently it is copying the entire descriptor, resulting in a new view instead of a new base table.
    --
    This message is automatically generated by JIRA.
    For more information on JIRA, see: http://www.atlassian.com/software/jira
  • Charles Chen (JIRA) at Jul 15, 2011 at 11:06 pm
    [ https://issues.apache.org/jira/browse/HIVE-1218?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Charles Chen updated HIVE-1218:
    -------------------------------

    Status: Patch Available (was: Open)
    CREATE TABLE t LIKE some_view should create a new empty base table, but instead creates a copy of view
    ------------------------------------------------------------------------------------------------------

    Key: HIVE-1218
    URL: https://issues.apache.org/jira/browse/HIVE-1218
    Project: Hive
    Issue Type: Bug
    Components: Metastore
    Affects Versions: 0.6.0
    Reporter: John Sichi
    Assignee: Charles Chen
    Fix For: 0.8.0

    Attachments: HIVE-1218v0.patch, HIVE-1218v2.patch, HIVE-1218v3.patch, HIVE-1218v4.patch, HIVE-1218v5.patch, HIVE-1218v6.patch


    I think it should copy only the column definitions from the view metadata. Currently it is copying the entire descriptor, resulting in a new view instead of a new base table.
    --
    This message is automatically generated by JIRA.
    For more information on JIRA, see: http://www.atlassian.com/software/jira
  • Charles Chen (JIRA) at Jul 15, 2011 at 11:24 pm
    [ https://issues.apache.org/jira/browse/HIVE-1218?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Charles Chen updated HIVE-1218:
    -------------------------------

    Attachment: HIVE-1218v7.patch
    CREATE TABLE t LIKE some_view should create a new empty base table, but instead creates a copy of view
    ------------------------------------------------------------------------------------------------------

    Key: HIVE-1218
    URL: https://issues.apache.org/jira/browse/HIVE-1218
    Project: Hive
    Issue Type: Bug
    Components: Metastore
    Affects Versions: 0.6.0
    Reporter: John Sichi
    Assignee: Charles Chen
    Fix For: 0.8.0

    Attachments: HIVE-1218v0.patch, HIVE-1218v2.patch, HIVE-1218v3.patch, HIVE-1218v4.patch, HIVE-1218v5.patch, HIVE-1218v6.patch, HIVE-1218v7.patch


    I think it should copy only the column definitions from the view metadata. Currently it is copying the entire descriptor, resulting in a new view instead of a new base table.
    --
    This message is automatically generated by JIRA.
    For more information on JIRA, see: http://www.atlassian.com/software/jira
  • Charles Chen (JIRA) at Jul 16, 2011 at 10:52 pm
    [ https://issues.apache.org/jira/browse/HIVE-1218?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Charles Chen updated HIVE-1218:
    -------------------------------

    Attachment: HIVE-1218v8.patch
    CREATE TABLE t LIKE some_view should create a new empty base table, but instead creates a copy of view
    ------------------------------------------------------------------------------------------------------

    Key: HIVE-1218
    URL: https://issues.apache.org/jira/browse/HIVE-1218
    Project: Hive
    Issue Type: Bug
    Components: Metastore
    Affects Versions: 0.6.0
    Reporter: John Sichi
    Assignee: Charles Chen
    Fix For: 0.8.0

    Attachments: HIVE-1218v0.patch, HIVE-1218v2.patch, HIVE-1218v3.patch, HIVE-1218v4.patch, HIVE-1218v5.patch, HIVE-1218v6.patch, HIVE-1218v7.patch, HIVE-1218v8.patch


    I think it should copy only the column definitions from the view metadata. Currently it is copying the entire descriptor, resulting in a new view instead of a new base table.
    --
    This message is automatically generated by JIRA.
    For more information on JIRA, see: http://www.atlassian.com/software/jira
  • John Sichi (JIRA) at Jul 18, 2011 at 7:02 pm
    [ https://issues.apache.org/jira/browse/HIVE-1218?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    John Sichi updated HIVE-1218:
    -----------------------------

    Resolution: Fixed
    Status: Resolved (was: Patch Available)

    Committed. Thanks Charles!

    CREATE TABLE t LIKE some_view should create a new empty base table, but instead creates a copy of view
    ------------------------------------------------------------------------------------------------------

    Key: HIVE-1218
    URL: https://issues.apache.org/jira/browse/HIVE-1218
    Project: Hive
    Issue Type: Bug
    Components: Metastore
    Affects Versions: 0.6.0
    Reporter: John Sichi
    Assignee: Charles Chen
    Fix For: 0.8.0

    Attachments: HIVE-1218v0.patch, HIVE-1218v2.patch, HIVE-1218v3.patch, HIVE-1218v4.patch, HIVE-1218v5.patch, HIVE-1218v6.patch, HIVE-1218v7.patch, HIVE-1218v8.patch


    I think it should copy only the column definitions from the view metadata. Currently it is copying the entire descriptor, resulting in a new view instead of a new base table.
    --
    This message is automatically generated by JIRA.
    For more information on JIRA, see: http://www.atlassian.com/software/jira
  • Charles Chen (JIRA) at Jul 27, 2011 at 10:59 pm
    [ https://issues.apache.org/jira/browse/HIVE-1218?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Charles Chen updated HIVE-1218:
    -------------------------------

    Component/s: (was: Metastore)
    Logging
    Affects Version/s: (was: 0.6.0)
    0.7.0
    Fix Version/s: (was: 0.8.0)
    Release Note: In 0.8.0, CREATE TABLE LIKE view_name creates a table by adopting the schema of view_name (fields and partition columns) using defaults for serde and file formats. Before 0.8.0, CREATE TABLE LIKE view_name would make a copy of the view. (was: From 0.8.0, CREATE TABLE LIKE view_name creates a table by adopting the schema of view_name (fields and partition columns) using defaults for serde and file formats. In Before 0.8.0, CREATE TABLE LIKE view_name would make a copy of the view.)
    CREATE TABLE t LIKE some_view should create a new empty base table, but instead creates a copy of view
    ------------------------------------------------------------------------------------------------------

    Key: HIVE-1218
    URL: https://issues.apache.org/jira/browse/HIVE-1218
    Project: Hive
    Issue Type: Bug
    Components: Logging
    Affects Versions: 0.7.0
    Reporter: John Sichi
    Assignee: Charles Chen
    Attachments: HIVE-1218v0.patch, HIVE-1218v2.patch, HIVE-1218v3.patch, HIVE-1218v4.patch, HIVE-1218v5.patch, HIVE-1218v6.patch, HIVE-1218v7.patch, HIVE-1218v8.patch


    I think it should copy only the column definitions from the view metadata. Currently it is copying the entire descriptor, resulting in a new view instead of a new base table.
    --
    This message is automatically generated by JIRA.
    For more information on JIRA, see: http://www.atlassian.com/software/jira
  • Charles Chen (JIRA) at Jul 27, 2011 at 10:59 pm
    [ https://issues.apache.org/jira/browse/HIVE-1218?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Charles Chen updated HIVE-1218:
    -------------------------------

    Release Note: From 0.8.0, CREATE TABLE LIKE view_name creates a table by adopting the schema of view_name (fields and partition columns) using defaults for serde and file formats. In Before 0.8.0, CREATE TABLE LIKE view_name would make a copy of the view.
    CREATE TABLE t LIKE some_view should create a new empty base table, but instead creates a copy of view
    ------------------------------------------------------------------------------------------------------

    Key: HIVE-1218
    URL: https://issues.apache.org/jira/browse/HIVE-1218
    Project: Hive
    Issue Type: Bug
    Components: Logging
    Affects Versions: 0.7.0
    Reporter: John Sichi
    Assignee: Charles Chen
    Attachments: HIVE-1218v0.patch, HIVE-1218v2.patch, HIVE-1218v3.patch, HIVE-1218v4.patch, HIVE-1218v5.patch, HIVE-1218v6.patch, HIVE-1218v7.patch, HIVE-1218v8.patch


    I think it should copy only the column definitions from the view metadata. Currently it is copying the entire descriptor, resulting in a new view instead of a new base table.
    --
    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

1 user in discussion

Charles Chen (JIRA): 22 posts