-
Notifications
You must be signed in to change notification settings - Fork 753
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: batch size hint of stream consumption #16363
Comments
@dosu how to implement this feature? |
Hi @sundy-li! I'm here to assist you with any bugs, questions, or contributions while you wait for a human maintainer. Let me know how I can help! Dosu To implement the feature for batch size hint of stream consumption in SQL, such as Here is a high-level approach to implement this feature:
Below is a simplified example of how you might implement this: Step 1: Modify the SQL ParserYou need to modify the SQL parser to recognize the Step 2: Store the Batch Size Hint in
|
Summary
When consuming streams, there are cases where the size of the change set needs to be constrained.
For example:
SELECT * FROM stream_s WITH CONSUME MAX_BATCH_SIZE_HINT 100;
While consuming
stream_s
, aim to return a change set of up to 100 rows if possible. Any remaining data will be left for the next round of consumption.The text was updated successfully, but these errors were encountered: