You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Filipe Souza (Jira)" <ji...@apache.org> on 2022/09/14 20:31:00 UTC

[jira] [Created] (SPARK-40430) Spark session does not update number of files for partition

Filipe Souza created SPARK-40430:
------------------------------------

             Summary: Spark session does not update number of files for partition
                 Key: SPARK-40430
                 URL: https://issues.apache.org/jira/browse/SPARK-40430
             Project: Spark
          Issue Type: Bug
          Components: Spark Core
    Affects Versions: 3.1.2
         Environment: I'm using spark 3.1.2 on AWS EMR and AWS Glue as catalog.
            Reporter: Filipe Souza


When a spark session has already queried data from a table and partition and new files are inserted into the partition externally, the spark session keeps the outdated number of files and does not return the new records.
If the data is inserted into a new partition, the problem will not occur.

Steps to reproduce the behavior:

Open a Spark session
Query a count in a table
Open another spark session
insert data into an existing partition
Check the count again in the first session


I expect to see the inserted records.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org