From cddf1ba74962d64de85b3a7aaccb789af765663a Mon Sep 17 00:00:00 2001 From: laglangyue <373435126@qq.com> Date: Fri, 23 Sep 2022 17:40:15 +0800 Subject: [PATCH] [Improve][Connector-v2]Supports direct definition of data values(row) --- docs/en/connector-v2/source/FakeSource.md | 3 +++ .../src/test/resources/assertion/fakesource_to_assert.conf | 1 + 2 files changed, 4 insertions(+) diff --git a/docs/en/connector-v2/source/FakeSource.md b/docs/en/connector-v2/source/FakeSource.md index 63e4eb3ef08..c4bc5057cbc 100644 --- a/docs/en/connector-v2/source/FakeSource.md +++ b/docs/en/connector-v2/source/FakeSource.md @@ -34,6 +34,9 @@ Table structure description ,you should assign schema option to tell connector h **Tips**: Most of Unstructured-Datasource contain this param, such as LocalFile,HdfsFile. **Example**: +### row.num +Number of additional rows of generated data + ```hocon schema = { fields { diff --git a/seatunnel-e2e/seatunnel-connector-v2-e2e/connector-assert-e2e/src/test/resources/assertion/fakesource_to_assert.conf b/seatunnel-e2e/seatunnel-connector-v2-e2e/connector-assert-e2e/src/test/resources/assertion/fakesource_to_assert.conf index 15da3772bd4..9b628ba46ba 100644 --- a/seatunnel-e2e/seatunnel-connector-v2-e2e/connector-assert-e2e/src/test/resources/assertion/fakesource_to_assert.conf +++ b/seatunnel-e2e/seatunnel-connector-v2-e2e/connector-assert-e2e/src/test/resources/assertion/fakesource_to_assert.conf @@ -24,6 +24,7 @@ env { source { FakeSource { + row.num = 16 result_table_name = "fake" schema = { fields {