hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Phabricator (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-5061) Row sampling throws NPE when used in sub-query
Date Mon, 12 Aug 2013 06:24:48 GMT

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

Phabricator updated HIVE-5061:
------------------------------

    Attachment: HIVE-5061.D12165.1.patch

navis requested code review of "HIVE-5061 [jira] Row sampling throws NPE when used in sub-query".

Reviewers: JIRA

HIVE-5061 Row sampling throws NPE when used in sub-query

select * from (select * from src TABLESAMPLE (1 ROWS)) x;

ava.lang.NullPointerException
	at org.apache.hadoop.hive.ql.parse.SplitSample.getTargetSize(SplitSample.java:103)
	at org.apache.hadoop.hive.ql.io.CombineHiveInputFormat.sampleSplits(CombineHiveInputFormat.java:487)
	at org.apache.hadoop.hive.ql.io.CombineHiveInputFormat.getSplits(CombineHiveInputFormat.java:405)
	at org.apache.hadoop.mapred.JobClient.writeOldSplits(JobClient.java:1025)
	at org.apache.hadoop.mapred.JobClient.writeSplits(JobClient.java:1017)
	at org.apache.hadoop.mapred.JobClient.access$600(JobClient.java:174)
	at org.apache.hadoop.mapred.JobClient$2.run(JobClient.java:928)
	at org.apache.hadoop.mapred.JobClient$2.run(JobClient.java:881)
	at java.security.AccessController.doPrivileged(Native Method)
	at javax.security.auth.Subject.doAs(Subject.java:396)
	at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1278)
	at org.apache.hadoop.mapred.JobClient.submitJobInternal(JobClient.java:881)
	at org.apache.hadoop.mapred.JobClient.submitJob(JobClient.java:855)
	at org.apache.hadoop.hive.ql.exec.mr.ExecDriver.execute(ExecDriver.java:426)
	at org.apache.hadoop.hive.ql.exec.mr.MapRedTask.execute(MapRedTask.java:144)
	at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:151)
	at org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:65)
	at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:1424)
	at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:1204)
	at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1009)
	at org.apache.hadoop.hive.ql.Driver.run(Driver.java:878)
	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:413)
	at org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:781)
	at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:675)
	at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:614)

TEST PLAN
  EMPTY

REVISION DETAIL
  https://reviews.facebook.net/D12165

AFFECTED FILES
  ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java
  ql/src/test/queries/clientpositive/split_sample.q
  ql/src/test/results/clientpositive/split_sample.q.out

MANAGE HERALD RULES
  https://reviews.facebook.net/herald/view/differential/

WHY DID I GET THIS EMAIL?
  https://reviews.facebook.net/herald/transcript/29061/

To: JIRA, navis

                
> Row sampling throws NPE when used in sub-query
> ----------------------------------------------
>
>                 Key: HIVE-5061
>                 URL: https://issues.apache.org/jira/browse/HIVE-5061
>             Project: Hive
>          Issue Type: Bug
>          Components: Query Processor
>            Reporter: Navis
>            Assignee: Navis
>            Priority: Minor
>         Attachments: HIVE-5061.D12165.1.patch
>
>
> select * from (select * from src TABLESAMPLE (1 ROWS)) x;
> {noformat}
> ava.lang.NullPointerException
> 	at org.apache.hadoop.hive.ql.parse.SplitSample.getTargetSize(SplitSample.java:103)
> 	at org.apache.hadoop.hive.ql.io.CombineHiveInputFormat.sampleSplits(CombineHiveInputFormat.java:487)
> 	at org.apache.hadoop.hive.ql.io.CombineHiveInputFormat.getSplits(CombineHiveInputFormat.java:405)
> 	at org.apache.hadoop.mapred.JobClient.writeOldSplits(JobClient.java:1025)
> 	at org.apache.hadoop.mapred.JobClient.writeSplits(JobClient.java:1017)
> 	at org.apache.hadoop.mapred.JobClient.access$600(JobClient.java:174)
> 	at org.apache.hadoop.mapred.JobClient$2.run(JobClient.java:928)
> 	at org.apache.hadoop.mapred.JobClient$2.run(JobClient.java:881)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at javax.security.auth.Subject.doAs(Subject.java:396)
> 	at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1278)
> 	at org.apache.hadoop.mapred.JobClient.submitJobInternal(JobClient.java:881)
> 	at org.apache.hadoop.mapred.JobClient.submitJob(JobClient.java:855)
> 	at org.apache.hadoop.hive.ql.exec.mr.ExecDriver.execute(ExecDriver.java:426)
> 	at org.apache.hadoop.hive.ql.exec.mr.MapRedTask.execute(MapRedTask.java:144)
> 	at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:151)
> 	at org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:65)
> 	at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:1424)
> 	at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:1204)
> 	at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1009)
> 	at org.apache.hadoop.hive.ql.Driver.run(Driver.java:878)
> 	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:413)
> 	at org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:781)
> 	at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:675)
> 	at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:614)
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message