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-35195][table] Support the execution of create materialized table in continuous refresh mode #24750

Merged
merged 8 commits into from May 7, 2024

Conversation

lsyldliu
Copy link
Contributor

@lsyldliu lsyldliu commented Apr 30, 2024

What is the purpose of the change

Support the execution of create materialized table in continuous refresh mode

Brief change log

  • Support the execution of create materialized table in continuous refresh mode

Verifying this change

This change added tests and can be verified as follows:

  • Added integration tests in MaterializedTableStatementITCase

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, Kubernetes/Yarn, 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? (docs)

@flinkbot
Copy link
Collaborator

flinkbot commented Apr 30, 2024

CI report:

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

@h12567
Copy link

h12567 commented May 1, 2024

May I ask how to find the list of issues/requests I can contribute to?

@lsyldliu
Copy link
Contributor Author

lsyldliu commented May 6, 2024

May I ask how to find the list of issues/requests I can contribute to?

You can find it in jira: https://issues.apache.org/jira/projects/FLINK/issues/

Copy link
Contributor

@hackergin hackergin left a comment

Choose a reason for hiding this comment

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

@lsyldliu Thanks for your contribution, I left some comments.

Copy link
Contributor

@hackergin hackergin left a comment

Choose a reason for hiding this comment

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

@lsyldliu Thanks for updating the code. LGTM. only left some minor comments.

operationExecutor, handle, createMaterializedTableOperation);
} else {
throw new SqlExecutionException(
"Only support create materialized table in continuous refresh mode currently.");
Copy link
Contributor

Choose a reason for hiding this comment

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

The wording here is a bit strange. How about change it to . Currently, we only support creating materialized tables with continuous refresh mode.

operationExecutor.callExecutableOperation(
handle, alterMaterializedTableChangeOperation);
} catch (Exception e) {
// drop materialized table while submit flink streaming job occur exception. Thus, weak
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
// drop materialized table while submit flink streaming job occur exception. Thus, weak
// drop materialized table while submitting flink streaming job occur exception. Thus, weak

}
}

public static CatalogMaterializedTable.LogicalRefreshMode deriveLogicalRefreshMode(
Copy link
Contributor

Choose a reason for hiding this comment

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

We can add some documentation to this function.

}
}

public static CatalogMaterializedTable.RefreshMode deriveRefreshMode(
Copy link
Contributor

Choose a reason for hiding this comment

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

Add doc too.

Copy link
Contributor Author

@lsyldliu lsyldliu left a comment

Choose a reason for hiding this comment

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

@hackergin Thanks for your reviewing, I think we can improve the minor comments in next PR.

@lsyldliu lsyldliu merged commit 29736b8 into apache:master May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants