Skip to content

Conversation

@sjwiesman
Copy link
Contributor

@sjwiesman sjwiesman commented Jan 8, 2021

What is the purpose of the change

As Blink has been the default planner for some time, and 1.12 now offers bounded data stream support, we should make the documentation "blink only". I think there is more we can do to improve the docs now that we don't have to worry about the legacy planner but that's a bigger update.

Note to reviewers: I did not update the .zh.md pages. So many of them have been translated that I was unable to without just replacing whole sections with English. I will open a follow-up ticket.

@sjwiesman sjwiesman requested review from twalthr and wuchong and removed request for twalthr January 8, 2021 17:04
@flinkbot
Copy link
Collaborator

flinkbot commented Jan 8, 2021

Thanks a lot for your contribution to the Apache Flink project. I'm the @flinkbot. I help the community
to review your pull request. We will use this comment to track the progress of the review.

Automated Checks

Last check on commit bdfba9d (Fri May 28 07:11:07 UTC 2021)

Warnings:

  • No documentation files were touched! Remember to keep the Flink docs up to date!

Mention the bot in a comment to re-run the automated checks.

Review Progress

  • ❓ 1. The [description] looks good.
  • ❓ 2. There is [consensus] that the contribution should go into to Flink.
  • ❓ 3. Needs [attention] from.
  • ❓ 4. The change fits into the overall [architecture].
  • ❓ 5. Overall code [quality] is good.

Please see the Pull Request Review Guide for a full explanation of the review process.

Details
The 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 commands
The @flinkbot bot supports the following commands:

  • @flinkbot approve description to approve one or more aspects (aspects: description, consensus, architecture and quality)
  • @flinkbot approve all to approve all aspects
  • @flinkbot approve-until architecture to approve everything until architecture
  • @flinkbot attention @username1 [@username2 ..] to require somebody's attention
  • @flinkbot disapprove architecture to remove an approval you gave earlier

@flinkbot
Copy link
Collaborator

flinkbot commented Jan 8, 2021

CI report:

Bot commands The @flinkbot bot supports the following commands:
  • @flinkbot run travis re-run the last Travis build
  • @flinkbot run azure re-run the last Azure build

@sjwiesman sjwiesman requested a review from alpinegizmo January 11, 2021 18:18
@sjwiesman
Copy link
Contributor Author

sjwiesman commented Jan 13, 2021

@twalthr could you please take a look at this whenever you have a spare cycle.

Copy link
Contributor

@twalthr twalthr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR @sjwiesman. I added some feedback.

from pyflink.table import EnvironmentSettings, BatchTableEnvironment

b_b_settings = EnvironmentSettings.new_instance().use_blink_planner().in_batch_mode().build()
b_b_t_env = BatchTableEnvironment.create(environment_settings=b_b_settings)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't this using the legacy planner in the background? I thought the Python API has also a unified environment, no?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a great question, I need to check on that

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately, PyFlink does not have a way of instantiating a pure TableEnvironment. I did verify this uses the blink planner and opened a ticket to add this functionality.

https://issues.apache.org/jira/browse/FLINK-20994

val stream: DataStream[Long] = ...

// convert DataStream into Table with default field name "f0"
// Convert DataStream into Table with default field name "f0"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

side comment: it's funny how taste differs, I prefer lower case for inline comments :D

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😸

@sjwiesman
Copy link
Contributor Author

@twalthr I appreciate the review. I've pushed an update that I hope addresses all of your comments.

Copy link
Contributor

@twalthr twalthr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One last comment, otherwise good to merge.

* Registering a user-defined (scalar, table, or aggregation) function
* Converting a `DataStream` into a `Table`
* Holding a reference to a `StreamExecutionEnvironment`
* In case of StreamTableEnvironment holding a reference to a `StreamExecutionEnvironment`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: I would surround it with back ticks


</div>
<div data-lang="Python" markdown="1">
N/A
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not very nice, but I guess we need a separate issue for this

@sjwiesman sjwiesman closed this in 3bf07d0 Jan 19, 2021
YuvalItzchakov pushed a commit to YuvalItzchakov/flink that referenced this pull request Jan 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants