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-36682][mysql][mongodb] Add scan.chunk.assign.strategy to avoid OOM exception. #3704

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

lvyanquan
Copy link
Contributor

Introduce a new config option scan.chunk.assign.strategy to control the order of split assignment.

…ol whether assign evenly splits in reverse order to avoid OOM exception.
Comment on lines 162 to 175
public static final ConfigOption<Boolean> SCAN_FLATTEN_NESTED_COLUMNS_ENABLED =
ConfigOptions.key("scan.flatten-nested-columns.enabled")
.booleanType()
.defaultValue(false)
.withDescription(
"Optional flag to recursively flatten the Bson field into columns."
+ "For a better understanding, the name of the flattened column will be composed of the path to get the column. "
+ "For example, the field `col` in the Bson document {\"nested\": {\"col\": true}} is `nested.col` in the flattened schema. ");

public static final ConfigOption<Boolean> SCAN_PRIMITIVE_AS_STRING =
ConfigOptions.key("scan.primitive-as-string")
.booleanType()
.defaultValue(false)
.withDescription("Optional flag to infer primitive types as string type.");
Copy link
Contributor

Choose a reason for hiding this comment

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

Irrelevant change?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed.

…ol whether assign evenly splits in reverse order to avoid OOM exception.
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.

2 participants