Hive
  1. Hive
  2. HIVE-3238

A table generating, table generating function

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.9.0
    • Fix Version/s: 0.10.0
    • Component/s: UDF
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Often times you create small text files to test something. This UDTF makes that easy.

      1. hive-3238-2.patch.txt
        8 kB
        Edward Capriolo
      2. hive-3238.patch.txt
        8 kB
        Edward Capriolo

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Patch Available Patch Available Open Open
        23d 19h 13m 1 Namit Jain 30/Jul/12 10:54
        Open Open Patch Available Patch Available
        3h 18m 2 Edward Capriolo 30/Jul/12 14:12
        Patch Available Patch Available Resolved Resolved
        15h 22m 1 Namit Jain 31/Jul/12 05:34
        Resolved Resolved Closed Closed
        163d 14h 18m 1 Ashutosh Chauhan 10/Jan/13 19:53
        Ashutosh Chauhan made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Hide
        Ashutosh Chauhan added a comment -

        This issue is fixed and released as part of 0.10.0 release. If you find an issue which seems to be related to this one, please create a new jira and link this one with new jira.

        Show
        Ashutosh Chauhan added a comment - This issue is fixed and released as part of 0.10.0 release. If you find an issue which seems to be related to this one, please create a new jira and link this one with new jira.
        Hide
        Hudson added a comment -

        Integrated in Hive-trunk-hadoop2 #54 (See https://builds.apache.org/job/Hive-trunk-hadoop2/54/)
        HIVE-3238 A table generating, table generating function
        (Edward via namit) (Revision 1367411)

        Result = ABORTED
        namit : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1367411
        Files :

        • /hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/FunctionRegistry.java
        • /hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDTFInline.java
        • /hive/trunk/ql/src/test/queries/clientpositive/udf_inline.q
        • /hive/trunk/ql/src/test/results/clientpositive/show_functions.q.out
        • /hive/trunk/ql/src/test/results/clientpositive/udf_inline.q.out
        Show
        Hudson added a comment - Integrated in Hive-trunk-hadoop2 #54 (See https://builds.apache.org/job/Hive-trunk-hadoop2/54/ ) HIVE-3238 A table generating, table generating function (Edward via namit) (Revision 1367411) Result = ABORTED namit : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1367411 Files : /hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/FunctionRegistry.java /hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDTFInline.java /hive/trunk/ql/src/test/queries/clientpositive/udf_inline.q /hive/trunk/ql/src/test/results/clientpositive/show_functions.q.out /hive/trunk/ql/src/test/results/clientpositive/udf_inline.q.out
        Hide
        Hudson added a comment -

        Integrated in Hive-trunk-h0.21 #1579 (See https://builds.apache.org/job/Hive-trunk-h0.21/1579/)
        HIVE-3238 A table generating, table generating function
        (Edward via namit) (Revision 1367411)

        Result = FAILURE
        namit : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1367411
        Files :

        • /hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/FunctionRegistry.java
        • /hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDTFInline.java
        • /hive/trunk/ql/src/test/queries/clientpositive/udf_inline.q
        • /hive/trunk/ql/src/test/results/clientpositive/show_functions.q.out
        • /hive/trunk/ql/src/test/results/clientpositive/udf_inline.q.out
        Show
        Hudson added a comment - Integrated in Hive-trunk-h0.21 #1579 (See https://builds.apache.org/job/Hive-trunk-h0.21/1579/ ) HIVE-3238 A table generating, table generating function (Edward via namit) (Revision 1367411) Result = FAILURE namit : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1367411 Files : /hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/FunctionRegistry.java /hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDTFInline.java /hive/trunk/ql/src/test/queries/clientpositive/udf_inline.q /hive/trunk/ql/src/test/results/clientpositive/show_functions.q.out /hive/trunk/ql/src/test/results/clientpositive/udf_inline.q.out
        Namit Jain made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Hadoop Flags Reviewed [ 10343 ]
        Resolution Fixed [ 1 ]
        Hide
        Namit Jain added a comment -

        Committed. Thanks Edward

        Show
        Namit Jain added a comment - Committed. Thanks Edward
        Hide
        Namit Jain added a comment -

        +1

        Show
        Namit Jain added a comment - +1
        Edward Capriolo made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Edward Capriolo made changes -
        Attachment hive-3238-2.patch.txt [ 12538347 ]
        Namit Jain made changes -
        Status Patch Available [ 10002 ] Open [ 1 ]
        Hide
        Namit Jain added a comment -

        @Edward, can you fix the lint error ?
        otherwise looks good.

        Show
        Namit Jain added a comment - @Edward, can you fix the lint error ? otherwise looks good.
        Show
        Edward Capriolo added a comment - https://reviews.facebook.net/D4035
        Carl Steinbach made changes -
        Component/s UDF [ 12313585 ]
        Hide
        Carl Steinbach added a comment -

        @Ed: Looks cool! Can you post a review request? Thanks.

        Show
        Carl Steinbach added a comment - @Ed: Looks cool! Can you post a review request? Thanks.
        Hide
        Edward Capriolo added a comment -

        Usage:

            client.execute("select inline_table( "
                    + "ARRAY("
                    + " STRUCT (1,'dude!'),"
                    + " STRUCT (2,'Wheres'),"
                    + " STRUCT (3,'my car?')"
                    + ")"
                    + ")  as (id, text) from inline");
            
        
        Show
        Edward Capriolo added a comment - Usage: client.execute("select inline_table( " + "ARRAY(" + " STRUCT (1,'dude!')," + " STRUCT (2,'Wheres')," + " STRUCT (3,'my car?')" + ")" + ") as (id, text) from inline");
        Edward Capriolo made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Edward Capriolo made changes -
        Field Original Value New Value
        Attachment hive-3238.patch.txt [ 12535375 ]
        Edward Capriolo created issue -

          People

          • Assignee:
            Edward Capriolo
            Reporter:
            Edward Capriolo
          • Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development