viirya commented on code in PR #59520:
URL: https://github.com/apache/spark/pull/59520#discussion_r4591022621


##########
docs/sql-native-data-sources.md:
##########
@@ -129,9 +129,13 @@ Spark calls the functions of the table as follows:
   the checkpoint of the source in a `SparkDsStreamReaderInfo`. When the 
checkpoint does not have the
   initial offset of the source yet, Spark asks for it with `initial_offset`, 
and keeps it in the
   checkpoint, so a query that restarts before its first micro-batch is 
committed starts from the
-  same offset. For each micro-batch, it asks for the `latest_offset`, with the 
offset that the
-  micro-batch starts after, plans the partitions with `stream_partitions`, 
which also returns the
-  state of the stream reader, and calls `read` on the executors. With 
`Trigger.AvailableNow`, a run
+  same offset. For each micro-batch, it asks for the `latest_offset`, with the 
starting progress
+  boundary of the micro-batch, plans the partitions with `stream_partitions`, 
which also returns the
+  state of the stream reader, and calls `read` on the executors. 
`stream_partitions` gets the
+  starting and ending progress boundaries of the micro-batch, and the library 
defines how offsets
+  map to records: if an offset is the next row to read, `{"next":10}` to 
`{"next":13}` reads rows
+  10, 11, and 12. Equal boundaries describe no data, and adjacent ranges must 
neither repeat nor

Review Comment:
   This adds a rule for library authors to the published guide, so it would 
ship in 4.4.0 under an SDK JIRA. A JIRA of its own would make the contract 
change easier to find, e.g. for the C++ SDK (#59726).



-- 
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]

Reply via email to