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

        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
        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
        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
        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");

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development