You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by GitBox <gi...@apache.org> on 2022/08/21 06:23:46 UTC

[GitHub] [incubator-seatunnel] hailin0 commented on a diff in pull request #2406: [Imporve][Fake-Connector-V2]support user-defined-schmea and random data for fake-table

hailin0 commented on code in PR #2406:
URL: https://github.com/apache/incubator-seatunnel/pull/2406#discussion_r950793681


##########
seatunnel-e2e/seatunnel-flink-connector-v2-e2e/src/test/resources/assertion/fakesource_to_assert.conf:
##########
@@ -25,64 +25,66 @@ env {
   #execution.checkpoint.data-uri = "hdfs://localhost:9000/checkpoint"
 }
 
+# Docoment-Link
+# https://seatunnel.apache.org/docs/category/source-v2
+# https://seatunnel.apache.org/docs/category/sink-v2
+# https://seatunnel.apache.org/docs/category/transform
+
 source {
-  # This is a example source plugin **only for test and demonstrate the feature source plugin**
-    FakeSource {
-      result_table_name = "fake"
-      field_name = "name,age"
+  FakeSource {
+    fields {
+      c_map = "map<string, string>"
+      c_array = "array<tinyint>"
+      c_string = string
+      c_boolean = boolean
+      c_tinyint = tinyint
+      c_smallint = smallint
+      c_int = int
+      c_bigint = bigint
+      c_float = float
+      c_double = double
+      c_decimal = "decimal(30, 8)"
+      c_null = "null"
+      c_bytes = bytes
+      c_date = date
+      c_time = time
+      c_timestamp = timestamp
     }

Review Comment:
   For testcase just change the FakeSource fields definition:
   
   from:
   FakeSource {
          result_table_name = "fake"
          field_name = "name,age"
   }
   
   to:
   FakeSource {
          result_table_name = "fake"
          fields {
            name = string
            age = int
          }
   }



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org