Github user windpiger commented on the issue:

    https://github.com/apache/spark/pull/16545
  
    thanks!
    
    val df = spark.read.json("/path/jsonfile")
    val df1 = spark.read.json("/path/jsonfile_1")
    
    df.createOrReplaceTempView("t")
    df1.createOrReplaceTempView("t1")
    
    spark.sql("insert overwrite table t select * from t1")
    
    this sql executed will hit the function `deleteMatchingPartitions` here
    
https://github.com/apache/spark/blob/master/sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/InsertIntoHadoopFsRelationCommand.scala#L104
    
    while `/path/jsonfile` is `not` a partition path file,  
`deleteMatchingPartitions` is not properly here?



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to