I talked to one of the developers who worked on constant folding optimization in hive. Starting Hive 0.14 (HDP 2.2), this should be getting optimized.
What version of hive/HDP are you using ?
↧
Reply To: Query on partition with where clause based on unix_timestamp()
↧