Details
-
Bug
-
Status: Closed
-
Blocker
-
Resolution: Fixed
-
0.6.0
-
None
-
Reviewed
Description
SELECT * FROM t WHERE rand() < 0.01;
Hive will say: "No need to submit job", because the condition evaluates to false.
The rand() function is special in the sense that every time it evaluates to a different value. We should disallow computing the value in the compiling phase.
One way to do that is to add an annotation in the UDFRand and check that in the compiling phase.
Attachments
Attachments
Issue Links
- duplicates
-
HIVE-325 [Hive] rand() should be ignored by input pruning
- Resolved