Description
How to reproduce this issue:
spark.sql("SELECT * FROM (SELECT /*+ REBALANCE */ * from range(10)) t11 WHERE id = 3").explain(true)
Output:
== Optimized Logical Plan == Filter (id#0L = 3) +- RebalancePartitions +- Range (0, 10, step=1, splits=None)
Expected:
== Optimized Logical Plan == RebalancePartitions +- Filter (id#0L = 3) +- Range (0, 10, step=1, splits=None)