You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by ki...@apache.org on 2022/02/15 10:04:11 UTC
[incubator-seatunnel] branch dev updated: [SEATUNNEL#1140][plugin] recover unequal code transform in FakeStream (#1237)
This is an automated email from the ASF dual-hosted git repository.
kirs pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-seatunnel.git
The following commit(s) were added to refs/heads/dev by this push:
new d5c8586 [SEATUNNEL#1140][plugin] recover unequal code transform in FakeStream (#1237)
d5c8586 is described below
commit d5c85864d1cfc4a3dcd41be174e7805d8201ab63
Author: CenterCode <yx...@users.noreply.github.com>
AuthorDate: Tue Feb 15 18:04:06 2022 +0800
[SEATUNNEL#1140][plugin] recover unequal code transform in FakeStream (#1237)
---
.../main/scala/org/apache/seatunnel/spark/source/FakeStream.scala | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/seatunnel-connectors/seatunnel-connector-spark-fake/src/main/scala/org/apache/seatunnel/spark/source/FakeStream.scala b/seatunnel-connectors/seatunnel-connector-spark-fake/src/main/scala/org/apache/seatunnel/spark/source/FakeStream.scala
index aa44f27..90bb680 100644
--- a/seatunnel-connectors/seatunnel-connector-spark-fake/src/main/scala/org/apache/seatunnel/spark/source/FakeStream.scala
+++ b/seatunnel-connectors/seatunnel-connector-spark-fake/src/main/scala/org/apache/seatunnel/spark/source/FakeStream.scala
@@ -56,7 +56,11 @@ class FakeStream extends SparkStreamingSource[String] {
}
override def checkConfig(): CheckResult = {
- checkAllExists(config, "content")
+ if (config.hasPath("content") && config.getStringList("content").nonEmpty) {
+ CheckResult.success()
+ } else {
+ CheckResult.error("please make sure [content] is of type string array")
+ }
}
}