From 4ac52304ef61ddac628dfc848d182e0b8b31a203 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B1=E5=9D=A4=E5=A5=8E?= Date: Thu, 9 Jun 2022 17:31:25 +0800 Subject: [PATCH] [hotfix-DTStack#932][chunjun-examples|docs] fix content's type is string and fix docs example --- chunjun-examples/json/stream/stream.json | 6 +++++- docs/quickstart.md | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/chunjun-examples/json/stream/stream.json b/chunjun-examples/json/stream/stream.json index 9e1395ec76..0d76bb2b72 100644 --- a/chunjun-examples/json/stream/stream.json +++ b/chunjun-examples/json/stream/stream.json @@ -38,6 +38,10 @@ { "name": "name", "type": "string" + }, + { + "name": "content", + "type": "string" } ], "print": true @@ -48,7 +52,7 @@ "name": "streamwriter" }, "transformer": { - "transformSql": "select id,name from sourceTable where CHAR_LENGTH(name) < 50 and CHAR_LENGTH(content) < 50" + "transformSql": "select id,name,content from sourceTable where CHAR_LENGTH(name) < 50 and CHAR_LENGTH(content) < 50" } } ], diff --git a/docs/quickstart.md b/docs/quickstart.md index a88363b4f5..170c14ccb0 100644 --- a/docs/quickstart.md +++ b/docs/quickstart.md @@ -81,7 +81,7 @@ sh build/build.sh }, { "name": "content", - "type": "timestamp" + "type": "string" } ], "print": true @@ -92,7 +92,7 @@ sh build/build.sh "name": "streamwriter" }, "transformer": { - "transformSql": "select id,name, NOW() from sourceTable where CHAR_LENGTH(name) < 50 and CHAR_LENGTH(content) < 50" + "transformSql": "select id,name, content from sourceTable where CHAR_LENGTH(name) < 50 and CHAR_LENGTH(content) < 50" } } ],