Zouxxyy opened a new pull request, #7585: URL: https://github.com/apache/paimon/pull/7585
### Purpose Fix querying Paimon View fails with "Cannot up cast from STRING to VARCHAR(n)" when the underlying table has VARCHAR or CHAR columns. Spark replaces CharType/VarcharType with StringType during V2 table resolution, but the view schema still preserves the original types. This causes UpCast(StringType → VarcharType(n)) to fail. The fix uses CharVarcharUtils.replaceCharVarcharWithStringInSchema to normalize the view schema before applying UpCast. ### Tests Add tests for views on tables with VARCHAR columns and nested VARCHAR types (ARRAY<VARCHAR>, MAP<STRING, VARCHAR>). -- 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]
