[jira] [Commented] (HIVE-2655) Ability to define functions in HQL
[ https://issues.apache.org/jira/browse/HIVE-2655?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15240256#comment-15240256 ] Lefty Leverenz commented on HIVE-2655: -- Removed the TODOC12 label. > Ability to define functions in HQL > -- > > Key: HIVE-2655 > URL: https://issues.apache.org/jira/browse/HIVE-2655 > Project: Hive > Issue Type: New Feature > Components: Macros, SQL >Reporter: Jonathan Perlow >Assignee: Brock Noland > Fix For: 0.12.0 > > Attachments: ASF.LICENSE.NOT.GRANTED--HIVE-2655.D915.1.patch, > ASF.LICENSE.NOT.GRANTED--HIVE-2655.D915.2.patch, > ASF.LICENSE.NOT.GRANTED--HIVE-2655.D915.3.patch, > ASF.LICENSE.NOT.GRANTED--HIVE-2655.D915.4.patch, HIVE-2655-10.patch, > HIVE-2655-10.patch, HIVE-2655-9.patch > > > Ability to create functions in HQL as a substitute for creating them in Java. > Jonathan Chang requested I create this issue. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (HIVE-2655) Ability to define functions in HQL
[ https://issues.apache.org/jira/browse/HIVE-2655?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15225418#comment-15225418 ] Lefty Leverenz commented on HIVE-2655: -- Review questions for [~brocknoland]: # Does hive.exec.drop.ignorenonexistent apply to macros? # Can CREATE MACRO specify db_name.macro_name? > Ability to define functions in HQL > -- > > Key: HIVE-2655 > URL: https://issues.apache.org/jira/browse/HIVE-2655 > Project: Hive > Issue Type: New Feature > Components: Macros, SQL >Reporter: Jonathan Perlow >Assignee: Brock Noland > Labels: TODOC12 > Fix For: 0.12.0 > > Attachments: ASF.LICENSE.NOT.GRANTED--HIVE-2655.D915.1.patch, > ASF.LICENSE.NOT.GRANTED--HIVE-2655.D915.2.patch, > ASF.LICENSE.NOT.GRANTED--HIVE-2655.D915.3.patch, > ASF.LICENSE.NOT.GRANTED--HIVE-2655.D915.4.patch, HIVE-2655-10.patch, > HIVE-2655-10.patch, HIVE-2655-9.patch > > > Ability to create functions in HQL as a substitute for creating them in Java. > Jonathan Chang requested I create this issue. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (HIVE-2655) Ability to define functions in HQL
[ https://issues.apache.org/jira/browse/HIVE-2655?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15225366#comment-15225366 ] Shannon Ladymon commented on HIVE-2655: --- Doc done: * [Language Manual - DDL - Create/Drop Macro | https://cwiki.apache.org/confluence/display/Hive/LanguageManual+DDL#LanguageManualDDL-Create/DropMacro] > Ability to define functions in HQL > -- > > Key: HIVE-2655 > URL: https://issues.apache.org/jira/browse/HIVE-2655 > Project: Hive > Issue Type: New Feature > Components: Macros, SQL >Reporter: Jonathan Perlow >Assignee: Brock Noland > Labels: TODOC12 > Fix For: 0.12.0 > > Attachments: ASF.LICENSE.NOT.GRANTED--HIVE-2655.D915.1.patch, > ASF.LICENSE.NOT.GRANTED--HIVE-2655.D915.2.patch, > ASF.LICENSE.NOT.GRANTED--HIVE-2655.D915.3.patch, > ASF.LICENSE.NOT.GRANTED--HIVE-2655.D915.4.patch, HIVE-2655-10.patch, > HIVE-2655-10.patch, HIVE-2655-9.patch > > > Ability to create functions in HQL as a substitute for creating them in Java. > Jonathan Chang requested I create this issue. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (HIVE-2655) Ability to define functions in HQL
[ https://issues.apache.org/jira/browse/HIVE-2655?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14743007#comment-14743007 ] Carl Steinbach commented on HIVE-2655: -- bq. Marking resolved as this was committed in 54ec1cb0d0540edf7946738bc113e90adcc09a6d. Here's the actual commit post migration to Git: {noformat} commit 7f0d6e69ec7aae756d1e7cee034df60b744482ce Author: Edward Capriolo Date: Sat Jun 15 00:59:04 2013 + Submitted by: Brock Noland Jonathon Chang Reviewed by: Edward Capriolo Approved by: Edward Capriolo git-svn-id: https://svn.apache.org/repos/asf/hive/trunk@1493292 13f79535-47bb-0310-9956-ffa450edef68 ql/src/java/org/apache/hadoop/hive/ql/exec/ExprNodeEvaluator.java| 7 ++ ql/src/java/org/apache/hadoop/hive/ql/exec/ExprNodeGenericFuncEvaluator.java | 11 +++ ql/src/java/org/apache/hadoop/hive/ql/exec/FunctionRegistry.java | 35 ++ ql/src/java/org/apache/hadoop/hive/ql/exec/FunctionTask.java | 32 + ql/src/java/org/apache/hadoop/hive/ql/parse/BaseSemanticAnalyzer.java| 31 + ql/src/java/org/apache/hadoop/hive/ql/parse/HiveLexer.g | 1 + ql/src/java/org/apache/hadoop/hive/ql/parse/HiveParser.g | 19 ++ ql/src/java/org/apache/hadoop/hive/ql/parse/MacroSemanticAnalyzer.java | 146 +++ ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java| 2 +- ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzerFactory.java | 5 ++ ql/src/java/org/apache/hadoop/hive/ql/plan/CreateMacroDesc.java | 72 ql/src/java/org/apache/hadoop/hive/ql/plan/DropMacroDesc.java| 48 + ql/src/java/org/apache/hadoop/hive/ql/plan/FunctionWork.java | 18 + ql/src/java/org/apache/hadoop/hive/ql/plan/HiveOperation.java| 2 + ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDFMacro.java | 171 ++ ql/src/test/org/apache/hadoop/hive/ql/parse/TestMacroSemanticAnalyzer.java | 133 ql/src/test/org/apache/hadoop/hive/ql/parse/TestSemanticAnalyzerFactory.java | 47 + ql/src/test/org/apache/hadoop/hive/ql/plan/TestCreateMacroDesc.java | 54 +++ ql/src/test/org/apache/hadoop/hive/ql/plan/TestDropMacroDesc.java| 36 ++ ql/src/test/org/apache/hadoop/hive/ql/udf/generic/TestGenericUDFMacro.java | 96 ++ ql/src/test/queries/clientnegative/macro_unused_parameter.q | 1 + ql/src/test/queries/clientpositive/macro.q | 26 +++ ql/src/test/queries/negative/macro_reserved_word.q | 1 + ql/src/test/results/clientnegative/macro_unused_parameter.q.out | 1 + ql/src/test/results/clientpositive/macro.q.out | 472 ++ ql/src/test/results/compiler/errors/macro_reserved_word.q.out| 1 + 26 files changed, 1453 insertions(+), 15 deletions(-) {noformat} > Ability to define functions in HQL > -- > > Key: HIVE-2655 > URL: https://issues.apache.org/jira/browse/HIVE-2655 > Project: Hive > Issue Type: New Feature > Components: SQL >Reporter: Jonathan Perlow >Assignee: Brock Noland > Labels: TODOC12 > Fix For: 0.12.0 > > Attachments: ASF.LICENSE.NOT.GRANTED--HIVE-2655.D915.1.patch, > ASF.LICENSE.NOT.GRANTED--HIVE-2655.D915.2.patch, > ASF.LICENSE.NOT.GRANTED--HIVE-2655.D915.3.patch, > ASF.LICENSE.NOT.GRANTED--HIVE-2655.D915.4.patch, HIVE-2655-10.patch, > HIVE-2655-10.patch, HIVE-2655-9.patch > > > Ability to create functions in HQL as a substitute for creating them in Java. > Jonathan Chang requested I create this issue. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (HIVE-2655) Ability to define functions in HQL
[ https://issues.apache.org/jira/browse/HIVE-2655?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14742964#comment-14742964 ] Lefty Leverenz commented on HIVE-2655: -- Doc note: This needs to be documented in the DDL wikidoc. * [Language Manual -- DDL | https://cwiki.apache.org/confluence/display/Hive/LanguageManual+DDL] Thanks go to Elliot West for requesting this on the Hive user mailing list. * [user@hive "Hive Macros roadmap" Sept. 11, 2015 | http://mail-archives.apache.org/mod_mbox/hive-user/201509.mbox/%3cCAC3gpCaXGL75aBf-Z_yrdCDHT-6iwPESDkMZMGp5vYMF=0x...@mail.gmail.com%3e] > Ability to define functions in HQL > -- > > Key: HIVE-2655 > URL: https://issues.apache.org/jira/browse/HIVE-2655 > Project: Hive > Issue Type: New Feature > Components: SQL >Reporter: Jonathan Perlow >Assignee: Brock Noland > Labels: TODOC12 > Fix For: 0.12.0 > > Attachments: ASF.LICENSE.NOT.GRANTED--HIVE-2655.D915.1.patch, > ASF.LICENSE.NOT.GRANTED--HIVE-2655.D915.2.patch, > ASF.LICENSE.NOT.GRANTED--HIVE-2655.D915.3.patch, > ASF.LICENSE.NOT.GRANTED--HIVE-2655.D915.4.patch, HIVE-2655-10.patch, > HIVE-2655-10.patch, HIVE-2655-9.patch > > > Ability to create functions in HQL as a substitute for creating them in Java. > Jonathan Chang requested I create this issue. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (HIVE-2655) Ability to define functions in HQL
[ https://issues.apache.org/jira/browse/HIVE-2655?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14742955#comment-14742955 ] Jonathan Chang commented on HIVE-2655: -- Hi, I am no longer reachable at this address. Please contact me at either slyco...@gmail.com or (310)425-3759. Cheers, Jonathan > Ability to define functions in HQL > -- > > Key: HIVE-2655 > URL: https://issues.apache.org/jira/browse/HIVE-2655 > Project: Hive > Issue Type: New Feature > Components: SQL >Reporter: Jonathan Perlow >Assignee: Brock Noland > Labels: TODOC12 > Fix For: 0.12.0 > > Attachments: ASF.LICENSE.NOT.GRANTED--HIVE-2655.D915.1.patch, > ASF.LICENSE.NOT.GRANTED--HIVE-2655.D915.2.patch, > ASF.LICENSE.NOT.GRANTED--HIVE-2655.D915.3.patch, > ASF.LICENSE.NOT.GRANTED--HIVE-2655.D915.4.patch, HIVE-2655-10.patch, > HIVE-2655-10.patch, HIVE-2655-9.patch > > > Ability to create functions in HQL as a substitute for creating them in Java. > Jonathan Chang requested I create this issue. -- This message was sent by Atlassian JIRA (v6.3.4#6332)