spark-instrumented-optimizer/sql/hive/src/test
gatorsmile e5d703bca8 [SPARK-15706][SQL] Fix Wrong Answer when using IF NOT EXISTS in INSERT OVERWRITE for DYNAMIC PARTITION
#### What changes were proposed in this pull request?
`IF NOT EXISTS` in `INSERT OVERWRITE` should not support dynamic partitions. If we specify `IF NOT EXISTS`, the inserted statement is not shown in the table.

This PR is to issue an exception in this case, just like what Hive does. Also issue an exception if users specify `IF NOT EXISTS` if users do not specify any `PARTITION` specification.

#### How was this patch tested?
Added test cases into `PlanParserSuite` and `InsertIntoHiveTableSuite`

Author: gatorsmile <gatorsmile@gmail.com>

Closes #13447 from gatorsmile/insertIfNotExist.
2016-06-16 22:54:02 -07:00
..
java/org/apache/spark/sql/hive [SPARK-15171][SQL] Remove the references to deprecated method dataset.registerTempTable 2016-05-18 09:01:59 +08:00
resources [SPARK-15887][SQL] Bring back the hive-site.xml support for Spark 2.0 2016-06-13 14:57:35 -07:00
scala/org/apache/spark/sql [SPARK-15706][SQL] Fix Wrong Answer when using IF NOT EXISTS in INSERT OVERWRITE for DYNAMIC PARTITION 2016-06-16 22:54:02 -07:00