-
Notifications
You must be signed in to change notification settings - Fork 29.1k
[SPARK-50117][BUILD][SS] Change to using maven/sbt plugin to generate StateMessage.java
#48654
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
Conversation
StateMessage.javaStateMessage.java
StateMessage.javamaven/sbt plugin to generate StateMessage.java
maven/sbt plugin to generate StateMessage.javamaven/sbt plugin to generate StateMessage.java
.github/workflows/build_and_test.yml
Outdated
| npm install --save-dev | ||
| node --experimental-vm-modules node_modules/.bin/jest | ||
|
|
||
| maven-test: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will revert after test
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maven/sbt plugin to generate StateMessage.javamaven/sbt plugin to generate StateMessage.java
This reverts commit 20d0be9.
|
cc @dongjoon-hyun FYI |
|
Could you resolve the conflicts, @LuciferYang ? |
dongjoon-hyun
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc @bogao007 , @jingz-db , @HeartSaVioR from SPARK-49821
done |
dongjoon-hyun
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1, LGTM from my side. Thank you, @LuciferYang .
|
Thanks for working on this, @LuciferYang ! |
|
Thank you for the question from @HeartSaVioR . This was also an issue I intended to discuss in SPARK-49821, and I apologize for forgetting to leave comments yesterday. Regarding the |
|
@HeartSaVioR @dongjoon-hyun Can we merge this one first? I have created a new Jira ticket: SPARK-50139, to remind us that we should provide a tool to assist in regenerating |
|
To @LuciferYang , I agree with you. I believe we can handle that seperately in SPARK-50139 if needed. Or, we can do a follow-up PR if something is missing in this PR's context. |
|
If there is no further comments until Tomorrow (72 hours after #48654 (comment)), I believe you can merge this. |
Got it ~ |
|
Would we want to also add StateMessage.java to gitignore so that we don't try to add the file again? |
double checked:
The |
|
Ah OK, so the generated file is placed in target, not source directory. Sounds good. |
|
Please allow me to wait for a day to sync with folks working on this (TWS in PySpark). I've asked them to comment and they will come in US tz. If there is no comment in tomorrow US tz, I'm OK with the fix. |
OK ~ |
|
Thank you for the sync-up with them, @HeartSaVioR . |
|
@LuciferYang Thanks for working on this change! QQ: for the dev loop after this is merged, if we add changes to |
|
To @bogao007 , yes, exactly. FYI, Apache Spark has many |
@bogao007 Yes, it would be enough. Thanks for your help! @dongjoon-hyun |
HeartSaVioR
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
|
Merged into master for Spark 4.0. Thanks @dongjoon-hyun @HeartSaVioR and @bogao007 |
|
Thank you all again! |

What changes were proposed in this pull request?
This pr changes the process to dynamically generate
StateMessage.javaduring build using the correspondingmaven/sbtplugin.Why are the changes needed?
Maintain the same generation way as the Java files corresponding to other pb files in Spark.
Does this PR introduce any user-facing change?
No
How was this patch tested?
Was this patch authored or co-authored using generative AI tooling?
No