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

Add strict mode in Routine load, Stream load and Mini load #1677

Merged
merged 5 commits into from Aug 20, 2019

Conversation

EmmyMiao87
Copy link
Contributor

No description provided.

@@ -522,7 +522,8 @@ struct TStreamLoadPutRequest {
15: optional string partitions
16: optional i64 auth_code
17: optional bool negative
18: optional i32 timeout
18: optional bool strictMode
19: optional i32 timeout
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't modify the index of old field. If you change the index, this may not compatible with old format

@@ -1160,6 +1169,10 @@ public void readFields(DataInput in) throws IOException {

origStmt = Text.readString(in);

if (Catalog.getCurrentCatalogJournalVersion() >= FeMetaVersion.VERSION_59) {
strictMode = in.readBoolean();
Copy link
Contributor

Choose a reason for hiding this comment

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

If you make all old routine load job to strict mode. This may cause many data to be filtered

@@ -57,6 +57,7 @@
private String partitions;
private String path;
private boolean negative;
private boolean strictMode = RoutineLoadJob.DEFAULT_STRICT_MODE;
Copy link
Contributor

Choose a reason for hiding this comment

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

Why put this DEFAULT_STRICT_MODE in RoutineLoadJob?

@@ -105,6 +105,7 @@
.add(MAX_BATCH_INTERVAL_SEC_PROPERTY)
.add(MAX_BATCH_ROWS_PROPERTY)
.add(MAX_BATCH_SIZE_PROPERTY)
.add(LoadStmt.STRICT_MODE)
Copy link
Contributor

Choose a reason for hiding this comment

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

should we update our Document about this property?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will update.

morningman
morningman previously approved these changes Aug 20, 2019
Copy link
Contributor

@morningman morningman left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@morningman morningman left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@imay imay left a comment

Choose a reason for hiding this comment

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

LGTM

@morningman morningman merged commit 978b1ee into apache:master Aug 20, 2019
@imay imay mentioned this pull request Sep 26, 2019
SWJTU-ZhangLei pushed a commit to SWJTU-ZhangLei/incubator-doris that referenced this pull request Jul 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants