Description
The testĀ fails:
test("SPARK-XXXXX: don not return data from dropped partition") { withNamespaceAndTable("ns", "tbl") { t => sql(s"CREATE TABLE $t (id int, part int) $defaultUsing PARTITIONED BY (part)") sql(s"INSERT INTO $t PARTITION (part=0) SELECT 0") sql(s"INSERT INTO $t PARTITION (part=1) SELECT 1") QueryTest.checkAnswer(sql(s"SELECT * FROM $t"), Seq(Row(0, 0), Row(1, 1))) sql(s"ALTER TABLE $t DROP PARTITION (part=0)") QueryTest.checkAnswer(sql(s"SELECT * FROM $t"), Seq(Row(1, 1))) } }
on the last check with:
== Results == !== Correct Answer - 1 == == Spark Answer - 2 == !struct<> struct<id:int,part:int> ![1,1] [0,0] ! [1,1]