[jira] [Created] (HIVE-11136) Unused Logger in org.apache.hadoop.hive.ql.udf.generic.GenericUDAFCount

2015-06-28 Thread Nishant Kelkar (JIRA)
Nishant Kelkar created HIVE-11136:
-

 Summary: Unused Logger in 
org.apache.hadoop.hive.ql.udf.generic.GenericUDAFCount
 Key: HIVE-11136
 URL: https://issues.apache.org/jira/browse/HIVE-11136
 Project: Hive
  Issue Type: Improvement
Reporter: Nishant Kelkar
Priority: Trivial


There is an unused logger in the GenericUDAFCount. We could either try/catch 
all the code that throws exceptions and log them, or get rid of the logger.

Relevant section of code:

{code}
public class GenericUDAFCount implements GenericUDAFResolver2 {

  private static final Log LOG = 
LogFactory.getLog(GenericUDAFCount.class.getName());
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Created] (HIVE-11114) Documentation of Pentaho Missing from Maven Central

2015-06-25 Thread Nishant Kelkar (JIRA)
Nishant Kelkar created HIVE-4:
-

 Summary: Documentation of Pentaho Missing from Maven Central
 Key: HIVE-4
 URL: https://issues.apache.org/jira/browse/HIVE-4
 Project: Hive
  Issue Type: Task
Reporter: Nishant Kelkar
Assignee: Nishant Kelkar
Priority: Minor


I recently cloned the Hive Git repository. When I went into the hive/ql 
sub-project and issued the command 'mvn clean compile -Phadoop-1', I got the 
following build error:

[ERROR] Failed to execute goal on project hive-exec: Could not resolve 
dependencies for project org.apache.hive:hive-exec:jar:2.0.0-SNAPSHOT: Could 
not find artifact org.pentaho:pentaho-aggdesigner-algorithm:jar:5.1.5-jhyde in 
US (http://repo.maven.apache.org/maven2) -> [Help 1]

This is because the pentaho-aggdesigner-algorithm dependency is not supported 
by Maven central; however, it is supported by Conjars.

As a quick fix, I downloaded the jar from Conjars repo, and manually installed 
this dependency to my local Maven by following the instructions here: 
http://www.mkyong.com/maven/how-to-include-library-manully-into-maven-local-repository/

However, I feel this dependency should be supported on Maven central (I'm not 
sure where to create this ticket/whom with, but Hive is my use case, so any 
pointers greatly appreciated).

This ticket tracks the task of documenting this fact on the Hive wiki as an 
additional Note.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (HIVE-8642) Hive stack() UDTF Doesn't Support NULL Insert Values

2014-10-29 Thread Nishant Kelkar (JIRA)

[ 
https://issues.apache.org/jira/browse/HIVE-8642?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14188209#comment-14188209
 ] 

Nishant Kelkar commented on HIVE-8642:
--

Thanks [~navis]! This solves my problem. 

However, I feel that queries of the form "INSERT INTO TABLE table_a SELECT 
UDTF(args) AS (arg_names) FROM table_b" should have support for null field 
insertions. This is because the output of the UDTF is tightly coupled with the 
schema of table_a. Right now, debugging through the code showed that null 
arguments to a UDTF generate VoidObjectInspector as input to the initialize() 
method (which they shouldn't, since the schema of table_a should be sufficient 
information to get correct ObjectInspectors). 

Please correct me if I'm wrong (I've only started digging into Hive source 
code). Thoughts?

> Hive stack() UDTF Doesn't Support NULL Insert Values
> 
>
> Key: HIVE-8642
> URL: https://issues.apache.org/jira/browse/HIVE-8642
> Project: Hive
>  Issue Type: Improvement
>  Components: SQL, UDF
>Affects Versions: 0.13.0
>Reporter: Nishant Kelkar
>Priority: Minor
>
> The following tables exist:
> 1. test_table --  schema {"field_a":STRING, "field_b":STRING, 
> "field_c":STRING}
> 2. dual -- schema {"field_1":INT}
> test_table contents:
> {code}
> endbpedia http://dbpedia.org/schools/CMU
> {code}
> dual contents:
> {code}
> 1
> {code}
> I tried the following query, and it fails:
> {code}
> INSERT INTO TABLE test_table SELECT 
> stack(1,
> "en",
> "dbpedia",
> NULL
> ) AS (
> field_a,
> field_b,
> field_c
> ) FROM dual;
> {code}
> The error returned: FAILED: NullPointerException null



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (HIVE-8642) Hive stack() UDTF Doesn't Support NULL Insert Values

2014-10-29 Thread Nishant Kelkar (JIRA)

[ 
https://issues.apache.org/jira/browse/HIVE-8642?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14188151#comment-14188151
 ] 

Nishant Kelkar commented on HIVE-8642:
--

Stack trace for the exception:
{code}
2014-10-29 01:23:36,757 INFO  parse.SemanticAnalyzer 
(SemanticAnalyzer.java:analyzeInternal(8185)) - Starting Semantic Analysis
2014-10-29 01:23:36,757 INFO  parse.SemanticAnalyzer 
(SemanticAnalyzer.java:analyzeInternal(8215)) - Completed phase 1 of Semantic 
Analysis
2014-10-29 01:23:36,757 INFO  parse.SemanticAnalyzer 
(SemanticAnalyzer.java:getMetaData(951)) - Get metadata for source tables
2014-10-29 01:23:36,771 INFO  parse.SemanticAnalyzer 
(SemanticAnalyzer.java:getMetaData(1036)) - Get metadata for subqueries
2014-10-29 01:23:36,771 INFO  parse.SemanticAnalyzer 
(SemanticAnalyzer.java:getMetaData(1056)) - Get metadata for destination tables
2014-10-29 01:23:36,784 INFO  parse.SemanticAnalyzer 
(SemanticAnalyzer.java:analyzeInternal(8218)) - Completed getting MetaData in 
Semantic Analysis
2014-10-29 01:23:36,787 ERROR ql.Driver (SessionState.java:printError(427)) - 
FAILED: NullPointerException null
java.lang.NullPointerException
at 
org.apache.hadoop.hive.serde2.objectinspector.ObjectInspectorUtils.supportsConstantObjectInspector(ObjectInspectorUtils.java:943)
at 
org.apache.hadoop.hive.ql.udf.generic.GenericUDF.initializeAndFoldConstants(GenericUDF.java:115)
at 
org.apache.hadoop.hive.ql.plan.ExprNodeGenericFuncDesc.newInstance(ExprNodeGenericFuncDesc.java:215)
at 
org.apache.hadoop.hive.ql.parse.TypeCheckProcFactory$DefaultExprProcessor.getXpathOrFuncExprNodeDesc(TypeCheckProcFactory.java:781)
at 
org.apache.hadoop.hive.ql.parse.TypeCheckProcFactory$DefaultExprProcessor.process(TypeCheckProcFactory.java:908)
at 
org.apache.hadoop.hive.ql.lib.DefaultRuleDispatcher.dispatch(DefaultRuleDispatcher.java:89)
at 
org.apache.hadoop.hive.ql.lib.DefaultGraphWalker.dispatch(DefaultGraphWalker.java:87)
at 
org.apache.hadoop.hive.ql.lib.DefaultGraphWalker.walk(DefaultGraphWalker.java:124)
at 
org.apache.hadoop.hive.ql.lib.DefaultGraphWalker.startWalking(DefaultGraphWalker.java:101)
at 
org.apache.hadoop.hive.ql.parse.TypeCheckProcFactory.genExprNode(TypeCheckProcFactory.java:166)
at 
org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.genExprNodeDesc(SemanticAnalyzer.java:8459)
at 
org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.genSelectPlan(SemanticAnalyzer.java:2485)
at 
org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.genSelectPlan(SemanticAnalyzer.java:2284)
at 
org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.genPostGroupByBodyPlan(SemanticAnalyzer.java:6843)
at 
org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.genBodyPlan(SemanticAnalyzer.java:6814)
at 
org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.genPlan(SemanticAnalyzer.java:7547)
at 
org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.analyzeInternal(SemanticAnalyzer.java:8224)
at 
org.apache.hadoop.hive.ql.parse.BaseSemanticAnalyzer.analyze(BaseSemanticAnalyzer.java:258)
at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:459)
at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:349)
at org.apache.hadoop.hive.ql.Driver.run(Driver.java:938)
at org.apache.hadoop.hive.ql.Driver.run(Driver.java:902)
at 
org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:259)
at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:216)
at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:412)
at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:759)
at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:613)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.hadoop.util.RunJar.main(RunJar.java:208)

{code}

> Hive stack() UDTF Doesn't Support NULL Insert Values
> 
>
> Key: HIVE-8642
> URL: https://issues.apache.org/jira/browse/HIVE-8642
> Project: Hive
>  Issue Type: Improvement
>  Components: SQL, UDF
>Affects Versions: 0.13.0
>Reporter: Nishant Kelkar
>Priority: Minor
>
> The following tables exist:
> 1. test_table --  schema {"field_a":STRING, "field_b":STRING, 
> "field_c":STRING}
> 2. dual -- schema {"field_1":INT}
> test_table contents:
> {code}
> endbpedia http://dbpedia.org/schools/CMU
> {code}
> dual contents:
> {code}
> 1
> {code}
> I tried the following query, and it fails:
> 

[jira] [Updated] (HIVE-8642) Hive stack() UDTF Doesn't Support NULL Insert Values

2014-10-29 Thread Nishant Kelkar (JIRA)

 [ 
https://issues.apache.org/jira/browse/HIVE-8642?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nishant Kelkar updated HIVE-8642:
-
Summary: Hive stack() UDTF Doesn't Support NULL Insert Values  (was: Hive 
stack() Method Doesn't Support NULL Insert Values)

> Hive stack() UDTF Doesn't Support NULL Insert Values
> 
>
> Key: HIVE-8642
> URL: https://issues.apache.org/jira/browse/HIVE-8642
> Project: Hive
>  Issue Type: Improvement
>  Components: SQL, UDF
>Affects Versions: 0.13.0
>Reporter: Nishant Kelkar
>Priority: Minor
>
> The following tables exist:
> 1. test_table --  schema {"field_a":STRING, "field_b":STRING, 
> "field_c":STRING}
> 2. dual -- schema {"field_1":INT}
> test_table contents:
> {code}
> endbpedia http://dbpedia.org/schools/CMU
> {code}
> dual contents:
> {code}
> 1
> {code}
> I tried the following query, and it fails:
> {code}
> INSERT INTO TABLE test_table SELECT 
> stack(1,
> "en",
> "dbpedia",
> NULL
> ) AS (
> field_a,
> field_b,
> field_c
> ) FROM dual;
> {code}
> The error returned: FAILED: NullPointerException null



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (HIVE-8642) Hive stack() Method Doesn't Support NULL Insert Values

2014-10-28 Thread Nishant Kelkar (JIRA)

[ 
https://issues.apache.org/jira/browse/HIVE-8642?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14187864#comment-14187864
 ] 

Nishant Kelkar commented on HIVE-8642:
--

Pardon me if I've missed out on any details in this ticket. This is my first 
ticket on this Jira board (well, first technical ticket). 

Tagging you in case I've missed something [~leftylev]!

> Hive stack() Method Doesn't Support NULL Insert Values
> --
>
> Key: HIVE-8642
> URL: https://issues.apache.org/jira/browse/HIVE-8642
> Project: Hive
>  Issue Type: Improvement
>  Components: SQL, UDF
>Affects Versions: 0.13.0
>Reporter: Nishant Kelkar
>Priority: Minor
>
> The following tables exist:
> 1. test_table --  schema {"field_a":STRING, "field_b":STRING, 
> "field_c":STRING}
> 2. dual -- schema {"field_1":INT}
> test_table contents:
> {code}
> endbpedia http://dbpedia.org/schools/CMU
> {code}
> dual contents:
> {code}
> 1
> {code}
> I tried the following query, and it fails:
> {code}
> INSERT INTO TABLE test_table SELECT 
> stack(1,
> "en",
> "dbpedia",
> NULL
> ) AS (
> field_a,
> field_b,
> field_c
> ) FROM dual;
> {code}
> The error returned: FAILED: NullPointerException null



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Created] (HIVE-8642) Hive stack() Method Doesn't Support NULL Insert Values

2014-10-28 Thread Nishant Kelkar (JIRA)
Nishant Kelkar created HIVE-8642:


 Summary: Hive stack() Method Doesn't Support NULL Insert Values
 Key: HIVE-8642
 URL: https://issues.apache.org/jira/browse/HIVE-8642
 Project: Hive
  Issue Type: Improvement
  Components: SQL, UDF
Affects Versions: 0.13.0
Reporter: Nishant Kelkar
Priority: Minor


The following tables exist:
1. test_table --  schema {"field_a":STRING, "field_b":STRING, "field_c":STRING}
2. dual -- schema {"field_1":INT}

test_table contents:
{code}
en  dbpedia http://dbpedia.org/schools/CMU
{code}

dual contents:
{code}
1
{code}

I tried the following query, and it fails:
{code}
INSERT INTO TABLE test_table SELECT 
stack(1,
"en",
"dbpedia",
NULL
) AS (
field_a,
field_b,
field_c
) FROM dual;
{code}

The error returned: FAILED: NullPointerException null



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (HIVE-7181) Beginner User On Apache Jira

2014-06-05 Thread Nishant Kelkar (JIRA)

[ 
https://issues.apache.org/jira/browse/HIVE-7181?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14019393#comment-14019393
 ] 

Nishant Kelkar commented on HIVE-7181:
--

[~leftylev], thanks so much! These links are really helpful! Specially, the 
"People page" and the "How to Contribute" pages. 

Also, I've sent a request email at user-subscr...@hive.apache.org and 
dev-subscr...@hive.apache.org, so I guess I should be hearing soon. 

Thanks again! 

> Beginner User On Apache Jira
> 
>
> Key: HIVE-7181
> URL: https://issues.apache.org/jira/browse/HIVE-7181
> Project: Hive
>  Issue Type: Wish
>Reporter: Nishant Kelkar
>Priority: Minor
>  Labels: documentation, newbie
>
> Hi All! 
> I've just started to use Apache's Jira board (I registered today). I've used 
> Jira for my work before, so I know how to navigate within Jira. But my main 
> question, was understanding how issues are handled in the open source 
> community (to which I want to contribute, but I'm a noob here too). So 
> basically, a person comes up with a ticket when he/she thinks that the issue 
> they are facing, is a bug/improvement. 
> Questions:
> 1. Whom am I supposed to assign the ticket to? (myself?)
> 2. Who would be the QA assignee? 
> 3. If addressing the issue requires looking at the code, how am I supposed to 
> change the code and bring into effect those changes? (At work, we maintain a 
> Git repo on our private server. So everyone always has access to the latest 
> code).
> 4. Where can I find a list of all the people who are active on this project 
> (Hive)? It would be nice if I could tag people by their names in my ticket 
> comments. 
> 5. Where can I find well formatted documentation about how to take issues 
> from discovery to fixture on Apache Jira? 
> I apologize in advance, if my questions are too simple.
> Thanks, and any/all help is appreciated! 



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Created] (HIVE-7181) Beginner User On Apache Jira

2014-06-05 Thread Nishant Kelkar (JIRA)
Nishant Kelkar created HIVE-7181:


 Summary: Beginner User On Apache Jira
 Key: HIVE-7181
 URL: https://issues.apache.org/jira/browse/HIVE-7181
 Project: Hive
  Issue Type: Wish
Reporter: Nishant Kelkar
Priority: Minor


Hi All! 

I've just started to use Apache's Jira board (I registered today). I've used 
Jira for my work before, so I know how to navigate within Jira. But my main 
question, was understanding how issues are handled in the open source community 
(to which I want to contribute, but I'm a noob here too). So basically, a 
person comes up with a ticket when he/she thinks that the issue they are 
facing, is a bug/improvement. 

Questions:
1. Whom am I supposed to assign the ticket to? (myself?)
2. Who would be the QA assignee? 
3. If addressing the issue requires looking at the code, how am I supposed to 
change the code and bring into effect those changes? (At work, we maintain a 
Git repo on our private server. So everyone always has access to the latest 
code).
4. Where can I find a list of all the people who are active on this project 
(Hive)? It would be nice if I could tag people by their names in my ticket 
comments. 
5. Where can I find well formatted documentation about how to take issues from 
discovery to fixture on Apache Jira? 

I apologize in advance, if my questions are too simple.

Thanks, and any/all help is appreciated! 




--
This message was sent by Atlassian JIRA
(v6.2#6252)