File tree Expand file tree Collapse file tree 1 file changed +0
-13
lines changed
sql/hive/src/test/scala/org/apache/spark/sql/hive Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -284,19 +284,6 @@ class InsertIntoHiveTableSuite extends QueryTest with TestHiveSingleton with Bef
284
284
sql(" DROP TABLE hiveTableWithStructValue" )
285
285
}
286
286
287
- test(" Reject partitioning that does not match table" ) {
288
- withSQLConf((" hive.exec.dynamic.partition.mode" , " nonstrict" )) {
289
- sql(" CREATE TABLE partitioned (id bigint, data string) PARTITIONED BY (part string)" )
290
- val data = (1 to 10 ).map(i => (i, s " data- $i" , if ((i % 2 ) == 0 ) " even" else " odd" ))
291
- .toDF(" id" , " data" , " part" )
292
-
293
- intercept[AnalysisException ] {
294
- // cannot partition by 2 fields when there is only one in the table definition
295
- data.write.partitionBy(" part" , " data" ).insertInto(" partitioned" )
296
- }
297
- }
298
- }
299
-
300
287
test(" Test partition mode = strict" ) {
301
288
withSQLConf((" hive.exec.dynamic.partition.mode" , " strict" )) {
302
289
sql(" CREATE TABLE partitioned (id bigint, data string) PARTITIONED BY (part string)" )
You can’t perform that action at this time.
0 commit comments