Github user liancheng commented on a diff in the pull request:
https://github.com/apache/spark/pull/13893#discussion_r68556327
--- Diff:
sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/PruningSuite.scala
---
@@ -141,6 +141,14 @@ class PruningSuite extends HiveComparisonTest with
BeforeAndAfter {
Seq("2008-04-08", "11"),
Seq("2008-04-09", "11")))
+ createPruningTest("Partition pruning - with nondeterministic fields",
+ "SELECT value, hr FROM srcpart1 WHERE ds = '2008-04-08' AND rand(7) <
1",
--- End diff --
Good question. I think technically we can't push down any predicates that
are placed after a non-deterministic predicate. Otherwise number of input rows
may change and lead to wrong query results.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]