HeartSaVioR commented on PR #59910: URL: https://github.com/apache/spark/pull/59910#issuecomment-6720508584
> [!NOTE] > **DISCLAIMER:** This comment was written by an LLM, Claude Opus 5.5 (`claude-opus-5-5`, 1M context), posting on behalf of @HeartSaVioR. Answers to the rest of the review. - **Five behaviors without a test.** Added in [3ac360af8fe](https://github.com/apache/spark/commit/3ac360af8feb532a40f9f4d718a9a31e758bc036): - read-side CHAR padding off; - decimals that fit their type are kept, at the top level, in an array element and in a map value; - a table with both capabilities is read as a batch scan, through `spark.read` and through the catalog; - ordinals −1 and n fail with `INVALID_INPUT_ORDINAL`; - one reader serves two requests, with the close order checked. - **A provider with a V1 read path and a lookup-only V2 table.** Loading such a source now fails with `DATA_SOURCE_INVALID_EXTERNAL_LOOKUP.LOOKUP_ONLY_TABLE_WITH_V1_READ`. This applies when the provider is also a `RelationProvider`, `SchemaRelationProvider`, `FileFormat` or `FileDataSourceV2`. The message tells the connector author to report both BATCH_READ and EXTERNAL_LOOKUP, or to remove the V1 read path. The `EXTERNAL_LOOKUP` Javadoc states the rule. A V1 fallback that keeps lookups would need a V1 relation that also carries the V2 lookup table, and we chose not to add that. - **Stream-only predicates before the lookup.** #60198 pushes them below the lookup join, as Spark does for an ordinary join. - **Wrapped lookup sides.** #60019 adds aliases, views, the hint, and SQL and catalog references. #60055 adds projections and filters. A command that reads a lookup-only table outside a lookup join now fails during analysis; see the `TableCapabilityCheck` thread. - **Batch memory.** The stream-row batch is now bounded by bytes too, through `spark.sql.join.externalLookup.maxBatchBytes`, 64 MB by default, in addition to the row cap. A batch always takes at least one row. -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
