Skip to content
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

[FLINK-8850] [sql-client] Add support for event-time in SQL Client #5683

Closed
wants to merge 1 commit into from

Conversation

twalthr
Copy link
Contributor

@twalthr twalthr commented Mar 12, 2018

What is the purpose of the change

Adds support for event-time in SQL Client. A full end-to-end test should and will follow once we support event-time in the CSVTableSourceFactory.

Brief change log

  • Added time-characteristic property
  • Fixed result de/serialization

Verifying this change

  • Existing DependencyTest extended

Does this pull request potentially affect one of the following parts:

  • Dependencies (does it add or upgrade a dependency): no
  • The public API, i.e., is any changed class annotated with @Public(Evolving): no
  • The serializers: no
  • The runtime per-record code paths (performance sensitive): no
  • Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Yarn/Mesos, ZooKeeper: no
  • The S3 file system connector: no

Documentation

  • Does this pull request introduce a new feature? yes
  • If yes, how is the feature documented? JavaDocs

Copy link
Contributor

@fhueske fhueske 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 @twalthr. Looks good, but I would remove the ingestion time support for now.

Best, Fabian

# 'batch' or 'streaming' execution
type: streaming
# allow 'event-time', 'ingestion-time', or only 'processing-time' in sources
time-characteristic: event-time
Copy link
Contributor

Choose a reason for hiding this comment

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

event-time or processing-time? What effect would ingestion time have?

switch (s) {
case PropertyStrings.EXECUTION_TIME_CHARACTERISTIC_VALUE_EVENT_TIME:
return TimeCharacteristic.EventTime;
case PropertyStrings.EXECUTION_TIME_CHARACTERISTIC_VALUE_INGESTION_TIME:
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove ingestion time?


public static final String EXECUTION_TIME_CHARACTERISTIC_VALUE_PROCESSING_TIME = "processing-time";

public static final String EXECUTION_TIME_CHARACTERISTIC_VALUE_INGESTION_TIME = "ingestion-time";
Copy link
Contributor

Choose a reason for hiding this comment

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

remove?

@twalthr
Copy link
Contributor Author

twalthr commented Mar 14, 2018

Thanks @fhueske. Merging this...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants