JingsongLi commented on code in PR #8062:
URL: https://github.com/apache/paimon/pull/8062#discussion_r3338311057


##########
docs/docs/spark/sql-write.md:
##########
@@ -597,9 +599,9 @@ By default (`FORCE = FALSE`), COPY INTO tracks which files 
have been successfull
 
 ### Limitations
 
+- **CSV column-count mismatch with ON_ERROR=CONTINUE**: Paimon follows Spark's 
PERMISSIVE mode behavior — rows with fewer columns are padded with NULL, and 
extra columns are silently ignored. These rows are loaded successfully and not 
counted as errors.

Review Comment:
   The behavior described here conflicts with the implementation and the new 
tests below. `runTextImport` reads CSV with `_corrupt_record` in PERMISSIVE 
mode and `detectTextErrors` filters `corruptCol.isNotNull` as parse errors, 
while `CopyIntoOnErrorTest` expects fewer/extra columns to become 
`PARTIALLY_LOADED` with `errors_seen = 1`. So either this limitation should say 
these rows are skipped/count as errors, or the implementation/tests need to be 
changed to match the documented Spark PERMISSIVE behavior.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to