-
Notifications
You must be signed in to change notification settings - Fork 486
[spark] Add spark streaming write support #2357
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
base: main
Are you sure you want to change the base?
Conversation
|
|
||
| /** An interface that extends from Spark [[StreamingWrite]]. */ | ||
| trait FlussStreamingWrite extends StreamingWrite with Serializable { | ||
| override def useCommitCoordinator(): Boolean = false |
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.
Why we have to disable to use commit coordinator?
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.
Kafka streaming write disabled too, batch writer disabled too.
will reenable when needed.
|
|
||
| val result = rowsWithType.zip(expectInput).forall { | ||
| case (flussRowWithType, expect) => | ||
| flussRowWithType._1.equals(expect._1) && flussRowWithType._2.getLong( |
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.
Can we use Assertions.assertThat to check the result, and then we don't have to print the mismatch data.
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.
Just follow spark ut to print whole data when mismatched
fluss-spark/fluss-spark-ut/src/test/scala/org/apache/fluss/spark/SparkStreamingTest.scala
Outdated
Show resolved
Hide resolved
|
more comments? @YannByron cc @wuchong |
Purpose
As title.
Linked issue: close #xxx
Brief change log
Tests
org.apache.fluss.spark.SparkStreamingTest
API and Format
Documentation