question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Flaky TestHivePushdownFilterQueries

See original GitHub issue

testFilterFunctions and testArrays failed with the following stacktrace in a recent build: https://api.travis-ci.org/v3/job/572454390/log.txt

[ERROR] testFilterFunctions(com.facebook.presto.hive.TestHivePushdownFilterQueries)  Time elapsed: 12.497 s  <<< FAILURE!
java.lang.AssertionError: Execution of 'actual' query failed: SELECT * FROM lineitem_ex WHERE keys[1] % 5 = 0 AND nested_keys[1][2] > 100
	at org.testng.Assert.fail(Assert.java:83)
	at com.facebook.presto.tests.QueryAssertions.assertQuery(QueryAssertions.java:150)
	at com.facebook.presto.tests.QueryAssertions.assertQuery(QueryAssertions.java:106)
	at com.facebook.presto.tests.AbstractTestQueryFramework.assertQuery(AbstractTestQueryFramework.java:138)
	at com.facebook.presto.hive.TestHivePushdownFilterQueries.assertQueryUsingH2Cte(TestHivePushdownFilterQueries.java:337)
	at com.facebook.presto.hive.TestHivePushdownFilterQueries.assertFilterProject(TestHivePushdownFilterQueries.java:235)
	at com.facebook.presto.hive.TestHivePushdownFilterQueries.testFilterFunctions(TestHivePushdownFilterQueries.java:277)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:104)
	at org.testng.internal.Invoker.invokeMethod(Invoker.java:645)
	at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:851)
	at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1177)
	at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:129)
	at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:112)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.RuntimeException: Failed to read ORC file: file:/tmp/PrestoTest3034274899939071963/hive_data/tpch/lineitem_ex/20190815_205249_00016_kkt5v_c501edb6-9447-4d8a-8374-2f5c02842425
	at com.facebook.presto.tests.AbstractTestingPrestoClient.execute(AbstractTestingPrestoClient.java:115)
	at com.facebook.presto.tests.DistributedQueryRunner.execute(DistributedQueryRunner.java:391)
	at com.facebook.presto.tests.QueryAssertions.assertQuery(QueryAssertions.java:147)
	... 18 more
Caused by: com.facebook.presto.spi.PrestoException: Failed to read ORC file: file:/tmp/PrestoTest3034274899939071963/hive_data/tpch/lineitem_ex/20190815_205249_00016_kkt5v_c501edb6-9447-4d8a-8374-2f5c02842425
	at com.facebook.presto.hive.orc.OrcSelectivePageSource.getNextPage(OrcSelectivePageSource.java:94)
	at com.facebook.presto.operator.TableScanOperator.getOutput(TableScanOperator.java:250)
	at com.facebook.presto.operator.Driver.processInternal(Driver.java:379)
	at com.facebook.presto.operator.Driver.lambda$processFor$8(Driver.java:283)
	at com.facebook.presto.operator.Driver.tryWithLock(Driver.java:675)
	at com.facebook.presto.operator.Driver.processFor(Driver.java:276)
	at com.facebook.presto.execution.SqlTaskExecution$DriverSplitRunner.processFor(SqlTaskExecution.java:1077)
	at com.facebook.presto.execution.executor.PrioritizedSplitRunner.process(PrioritizedSplitRunner.java:162)
	at com.facebook.presto.execution.executor.TaskExecutor$TaskRunner.run(TaskExecutor.java:483)
	at com.facebook.presto.$gen.Presto_0_225_SNAPSHOT_4222738__testversion____20190815_205238_14609.run(Unknown Source)
	... 3 more
Caused by: java.lang.ArrayIndexOutOfBoundsException: 1
	at com.facebook.presto.orc.reader.ListFilter.populateElementFilters(ListFilter.java:213)
	at com.facebook.presto.orc.reader.ListSelectiveStreamReader.readNotAllNulls(ListSelectiveStreamReader.java:369)
	at com.facebook.presto.orc.reader.ListSelectiveStreamReader.read(ListSelectiveStreamReader.java:226)
	at com.facebook.presto.orc.reader.ListSelectiveStreamReader.readNotAllNulls(ListSelectiveStreamReader.java:373)
	at com.facebook.presto.orc.reader.ListSelectiveStreamReader.read(ListSelectiveStreamReader.java:226)
	at com.facebook.presto.orc.OrcSelectiveRecordReader.getNextPage(OrcSelectiveRecordReader.java:263)
	at com.facebook.presto.hive.orc.OrcSelectivePageSource.getNextPage(OrcSelectivePageSource.java:78)
	... 12 more

[ERROR] testArrays(com.facebook.presto.hive.TestHivePushdownFilterQueries)  Time elapsed: 2.158 s  <<< FAILURE!
java.lang.AssertionError: Execution of 'actual' query failed: SELECT * FROM lineitem_ex WHERE nested_keys[3] IS NOT NULL
	at org.testng.Assert.fail(Assert.java:83)
	at com.facebook.presto.tests.QueryAssertions.assertQuery(QueryAssertions.java:150)
	at com.facebook.presto.tests.QueryAssertions.assertQuery(QueryAssertions.java:106)
	at com.facebook.presto.tests.AbstractTestQueryFramework.assertQuery(AbstractTestQueryFramework.java:138)
	at com.facebook.presto.hive.TestHivePushdownFilterQueries.assertQueryUsingH2Cte(TestHivePushdownFilterQueries.java:337)
	at com.facebook.presto.hive.TestHivePushdownFilterQueries.assertFilterProject(TestHivePushdownFilterQueries.java:235)
	at com.facebook.presto.hive.TestHivePushdownFilterQueries.testArrays(TestHivePushdownFilterQueries.java:188)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:104)
	at org.testng.internal.Invoker.invokeMethod(Invoker.java:645)
	at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:851)
	at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1177)
	at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:129)
	at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:112)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.RuntimeException: Failed to read ORC file: file:/tmp/PrestoTest3034274899939071963/hive_data/tpch/lineitem_ex/20190815_205249_00016_kkt5v_c501edb6-9447-4d8a-8374-2f5c02842425
	at com.facebook.presto.tests.AbstractTestingPrestoClient.execute(AbstractTestingPrestoClient.java:115)
	at com.facebook.presto.tests.DistributedQueryRunner.execute(DistributedQueryRunner.java:391)
	at com.facebook.presto.tests.QueryAssertions.assertQuery(QueryAssertions.java:147)
	... 18 more
Caused by: com.facebook.presto.spi.PrestoException: Failed to read ORC file: file:/tmp/PrestoTest3034274899939071963/hive_data/tpch/lineitem_ex/20190815_205249_00016_kkt5v_c501edb6-9447-4d8a-8374-2f5c02842425
	at com.facebook.presto.hive.orc.OrcSelectivePageSource.getNextPage(OrcSelectivePageSource.java:94)
	at com.facebook.presto.operator.TableScanOperator.getOutput(TableScanOperator.java:250)
	at com.facebook.presto.operator.Driver.processInternal(Driver.java:379)
	at com.facebook.presto.operator.Driver.lambda$processFor$8(Driver.java:283)
	at com.facebook.presto.operator.Driver.tryWithLock(Driver.java:675)
	at com.facebook.presto.operator.Driver.processFor(Driver.java:276)
	at com.facebook.presto.execution.SqlTaskExecution$DriverSplitRunner.processFor(SqlTaskExecution.java:1077)
	at com.facebook.presto.execution.executor.PrioritizedSplitRunner.process(PrioritizedSplitRunner.java:162)
	at com.facebook.presto.execution.executor.TaskExecutor$TaskRunner.run(TaskExecutor.java:483)
	at com.facebook.presto.$gen.Presto_0_225_SNAPSHOT_4222738__testversion____20190815_205237_14608.run(Unknown Source)
	... 3 more
Caused by: java.lang.ArrayIndexOutOfBoundsException: 1
	at com.facebook.presto.orc.reader.ListFilter.populateElementFilters(ListFilter.java:213)
	at com.facebook.presto.orc.reader.ListSelectiveStreamReader.readNotAllNulls(ListSelectiveStreamReader.java:369)
	at com.facebook.presto.orc.reader.ListSelectiveStreamReader.read(ListSelectiveStreamReader.java:226)
	at com.facebook.presto.orc.reader.ListSelectiveStreamReader.readNotAllNulls(ListSelectiveStreamReader.java:373)
	at com.facebook.presto.orc.reader.ListSelectiveStreamReader.read(ListSelectiveStreamReader.java:226)
	at com.facebook.presto.orc.OrcSelectiveRecordReader.getNextPage(OrcSelectiveRecordReader.java:263)
	at com.facebook.presto.hive.orc.OrcSelectivePageSource.getNextPage(OrcSelectivePageSource.java:78)
	... 12 more

@mbasmanova based on the stack trace it looks related to https://github.com/prestodb/presto/pull/13099. Can you take a look?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
mbasmanovacommented, Aug 19, 2019

@rschlussel Thanks for reporting. I’ll take a look. CC: @prestodb/aria

0reactions
mbasmanovacommented, Dec 11, 2019

Haven’t seen this recently.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Hive problem with predicate pushdown in subqueries... - 179403
Hello,. I am facing a problem with predicates pushdowns. It is not working while adding a window function in the selected columns.
Read more >
Optimizing Spark queries with filter pushdown
Filter pushdown with Apache Spark can greatly improve query performance by pushing the execution of certain filters to the data source.
Read more >
Release notes for 342 · Issue #5111 · trinodb/trino - GitHub
Hive * Disable matching the existing user and group of the table or partition when creating new files on HDFS. The functionality was...
Read more >
Amazon EMR 6.6.0 - Hive release notes
A workaround would be to disable CBO at the query level for such queries. ... Backport, HIVE-21550 : TestObjectStore tests are flaky -...
Read more >
About PXF Filter Pushdown | Pivotal Greenplum Docs
If a query accesses a data source that does not support filter push-down for the ... For example, the PXF Hive, HBase, and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found