flink中的faker生成的数据后面带有~
生活随笔
收集整理的這篇文章主要介紹了
flink中的faker生成的数据后面带有~
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
我們大概注意到了這么一種現象:
faker代碼
CREATE TABLE subscriptions ( id STRING,user_id INT,type STRING,start_date TIMESTAMP(3),end_date TIMESTAMP(3),payment_expiration TIMESTAMP(3),proc_time AS PROCTIME() ) WITH ('connector' = 'faker','fields.id.expression' = '#{Internet.uuid}', 'fields.user_id.expression' = '#{number.numberBetween ''1'',''50''}','fields.type.expression'= '#{regexify ''(basic|premium|platinum){1}''}','fields.start_date.expression' = '#{date.past ''30'',''DAYS''}','fields.end_date.expression' = '#{date.future ''365'',''DAYS''}','fields.payment_expiration.expression' = '#{date.future ''365'',''DAYS''}' ); select * from subscriptions;根據官方[1]回復.
這個faker主要是支持
?Ververica Platform
而不是FLINK SQL Client的.
所以母公司Ververica中顯示是正常的.
另外,作者還說,
這個~是表示數據太長了,類似于省略的意思
Reference:
[1]why ~ in the end?Thanks
?
?
總結
以上是生活随笔為你收集整理的flink中的faker生成的数据后面带有~的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 比较难猜的卧底词语大全106个
- 下一篇: 无脸男的来历