HeartSaVioR commented on PR #60313: URL: https://github.com/apache/spark/pull/60313#issuecomment-6890054524
> [!NOTE] > **DISCLAIMER:** This comment was written by an LLM, Claude Opus 5.5 (`claude-opus-5-5`, 1M context), posting on behalf of @HeartSaVioR. Thanks for running the suite, and for the suggestion. I took it, in [2371eb43300](https://github.com/apache/spark/commit/2371eb43300b95f759efa00ab1931dd7bd7713a8): - **One row per request by default in real-time mode.** Each stream row's lookup goes out as soon as the row is read, and the lookup cache serves keys that repeat. The cost is one round trip per uncached row. - **A setting to raise it.** The new `spark.sql.join.externalLookup.realTimeMode.maxBatchRows`, default 1, trades latency for fewer round trips. The connector's `maxParameterRowsPerRequest`, `maxBatchBytes` and the 1000-row cap still apply. Micro-batch queries don't use it. - **Decided at planning.** The planner uses `isRealTimeMode`, the same signal as for the streaming aggregation. To share it, `isRealTimeMode` moved unchanged into an `object SparkStrategies`, and `ExternalLookupJoinExec` gets a `realTimeMode` field. - **Still no timer or extra thread.** The known limitation, a request that is not full waiting for the batch end, now applies only when the setting is raised above 1. The description says so. -- 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]
