-
Notifications
You must be signed in to change notification settings - Fork 13.8k
[FLINK-17686][doc] Add document to dataGen, print, blackhole connectors #12610
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Thanks a lot for your contribution to the Apache Flink project. I'm the @flinkbot. I help the community Automated ChecksLast check on commit cb675d7 (Thu Jun 11 13:45:42 UTC 2020) ✅no warnings Mention the bot in a comment to re-run the automated checks. Review Progress
Please see the Pull Request Review Guide for a full explanation of the review process. DetailsThe Bot is tracking the review progress through labels. Labels are applied according to the order of the review items. For consensus, approval by a Flink committer of PMC member is required Bot commandsThe @flinkbot bot supports the following commands:
|
sjwiesman
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly looks good, just a few nits.
| How to create an Blackhole table | ||
| ---------------- | ||
|
|
||
| Although it doesn't make sense to define the fields of print table, you need to write them all in DDL. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I understand what you are trying to say but the statement sounds like a put down on Flink. Lets just drop it.
| Although it doesn't make sense to define the fields of print table, you need to write them all in DDL. |
|
|
||
| Just like /dev/null device on Unix-like operating systems. | ||
|
|
||
| The Print connector is built-in. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| The Print connector is built-in. | |
| The Black connector is built-in. |
docs/dev/table/connectors/print.md
Outdated
| How to create an Print table | ||
| ---------------- | ||
|
|
||
| Although it doesn't make sense to define the fields of print table, you need to write them all in DDL. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above, lets drop this.
| Although it doesn't make sense to define the fields of print table, you need to write them all in DDL. |
| </div> | ||
| </div> | ||
|
|
||
| Another way is using [LIKE Clause]({{ site.baseurl }}/dev/table/sql/create.html#create-table). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| Another way is using [LIKE Clause]({{ site.baseurl }}/dev/table/sql/create.html#create-table). | |
| Alternativly, it may be based on an existing schema using the [LIKE Clause]({{ site.baseurl }}/dev/table/sql/create.html#create-table). |
docs/dev/table/connectors/print.md
Outdated
| </div> | ||
| </div> | ||
|
|
||
| Another way is using [LIKE Clause]({{ site.baseurl }}/dev/table/sql/create.html#create-table). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| Another way is using [LIKE Clause]({{ site.baseurl }}/dev/table/sql/create.html#create-table). | |
| Alternatively, it may be based on an existing schema using the [LIKE Clause]({{ site.baseurl }}/dev/table/sql/create.html#create-table). |
godfreyhe
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution, I left some minor comments
docs/dev/table/connectors/datagen.md
Outdated
| For each field, there are two ways to generate data: | ||
|
|
||
| - Random generator: default, you can specify random max and min values. For char/varchar/string, the length can be specified. | ||
| - Sequence generator: you can specify sequence start and end values. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
explain more about the behavior of after reaching the end value ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
default -> By default.
docs/dev/table/connectors/print.md
Outdated
|
|
||
| Four possible format options: | ||
|
|
||
| - PRINT_IDENTIFIER:taskId> output <- PRINT_IDENTIFIER provided, parallelism > 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The web display is not friendly
docs/dev/table/connectors/print.md
Outdated
| - taskId> output <- no PRINT_IDENTIFIER provided, parallelism > 1 | ||
| - output <- no PRINT_IDENTIFIER provided, parallelism == 1 | ||
|
|
||
| The output string format is "$RowKind(f0,f1,f2...)", example is: "+I(1,1)". |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
explain more about RowKind here or give a link where already explained it?
| The Print connector is built-in. | ||
|
|
||
| How to create an Blackhole table | ||
| ---------------- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
an Blackhole -> a Blackhole
| {% highlight sql %} | ||
| CREATE TABLE blackhole_table () WITH ('connector' = 'blackhole') | ||
| LIKE source_table (EXCLUDING ALL) | ||
| {% endhighlight %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The () can be dropped.
| The Datagen connector is built-in. | ||
|
|
||
| <span class="label label-danger">Attention</span> Not support complex types: Array, Map, Row. Please construct these types by computed column. | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not support complex types -> Complex types are not supported
| <span class="label label-danger">Attention</span> Not support complex types: Array, Map, Row. Please construct these types by computed column. | ||
|
|
||
| How to create an Datagen table | ||
| ---------------- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
an -> a
docs/dev/table/connectors/datagen.md
Outdated
| For each field, there are two ways to generate data: | ||
|
|
||
| - Random generator: default, you can specify random max and min values. For char/varchar/string, the length can be specified. | ||
| - Sequence generator: you can specify sequence start and end values. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
default -> By default.
|
Thanks @sjwiesman @godfreyhe @danny0405 for your review, updated. |
docs/dev/table/connectors/print.md
Outdated
| </tbody> | ||
| </table> | ||
|
|
||
| The output string format is "$row_kind(f0,f1,f2...)", row_kind is the short string of [RowKind](https://ci.apache.org/projects/flink/flink-docs-master/api/java/org/apache/flink/types/RowKind.html), example is: "+I(1,1)". |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The url should be changed with flink version. such as for 1.11, flink-doces-master should be changed to flink-docs-release-1.11
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use { site.baseurl }
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed to {{ site.baseurl }}
godfreyhe
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
docs/dev/table/connectors/print.md
Outdated
|
|
||
| The Print connector is built-in. | ||
|
|
||
| <span class="label label-danger">Attention</span> Print sink print records in tasks, you need to observe the task log. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Print sink print ... -> Print sink prints ...
|
Thanks all for your review, merged~ |
What is the purpose of the change
Add document to dataGen, print, blackhole connectors
Verifying this change