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

[Enhancement](data-type) add FE config to prohibit create date and decimalv2 type #19077

Merged
merged 2 commits into from
Apr 28, 2023

Conversation

Cai-Yao
Copy link
Contributor

@Cai-Yao Cai-Yao commented Apr 25, 2023

Proposed changes

Issue Number: close #xxx

Problem summary

FE config

  • disable_decimalv2, default is true.
  • disable_datev1, default is true.

Afterwards, Doris prohibits creating tables containing the DATE and DECIMAL type by default.

Because of intending to delete these types in the future. At this stage, If you need to use these types, you need to add disable_datev1 = false or disable_decimalv2 = false in the FE's config and restart the FE.

On regression pipeline, these parameters in FE config is set false.

Checklist(Required)

  • Does it affect the original behavior
  • Has unit tests been added
  • Has document been added or modified
  • Does it need to update dependencies
  • Is this PR support rollback (If NO, please explain WHY)

Further comments

If this is a relatively large or complex change, kick off the discussion at [email protected] by explaining why you chose the solution you did and what alternatives you considered, etc...

@github-actions github-actions bot added area/planner Issues or PRs related to the query planner kind/docs Categorizes issue or PR as related to documentation. labels Apr 25, 2023
@Cai-Yao
Copy link
Contributor Author

Cai-Yao commented Apr 26, 2023

run buildall

@hello-stephen
Copy link
Contributor

hello-stephen commented Apr 26, 2023

TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 35.01 seconds
stream load tsv: 430 seconds loaded 74807831229 Bytes, about 165 MB/s
stream load json: 26 seconds loaded 2358488459 Bytes, about 86 MB/s
stream load orc: 59 seconds loaded 1101869774 Bytes, about 17 MB/s
stream load parquet: 31 seconds loaded 861443392 Bytes, about 26 MB/s
https://doris-community-test-1308700295.cos.ap-hongkong.myqcloud.com/tmp/20230428021246_clickbench_pr_136806.html

@Cai-Yao Cai-Yao closed this Apr 26, 2023
@Cai-Yao Cai-Yao reopened this Apr 27, 2023
@yiguolei
Copy link
Contributor

run buildall

@yiguolei yiguolei added dev/2.0.0-alpha1 should be merged into branch-2.0-alpha kind/behavior-changed labels Apr 28, 2023
Copy link
Contributor

@yiguolei yiguolei left a comment

Choose a reason for hiding this comment

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

LGTM

@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Apr 28, 2023
@github-actions
Copy link
Contributor

PR approved by at least one committer and no changes requested.

@github-actions
Copy link
Contributor

PR approved by anyone and no changes requested.

@yiguolei yiguolei merged commit 5e9c0c3 into apache:master Apr 28, 2023
xiaokang pushed a commit to xiaokang/doris that referenced this pull request Apr 28, 2023
…cimalv2 type (apache#19077)

* prohibits date and decimal type

* add config in test
Mryange pushed a commit to Mryange/doris that referenced this pull request Apr 28, 2023
…cimalv2 type (apache#19077)

* prohibits date and decimal type

* add config in test
@xiaokang xiaokang added dev/2.0.0-alpha1-merged and removed dev/2.0.0-alpha1 should be merged into branch-2.0-alpha labels Apr 30, 2023
yiguolei pushed a commit that referenced this pull request May 6, 2023
…19247)

This PR enables periodic collection of statistics and is a precursor to automatic statistics collection. It mainly includes the following contents:

support periodic collection of statistics.
Change the type of Date in statistics p0 to DateV2(see [Enhancement](data-type) add FE config to prohibit create date and decimalv2 type #19077) for test locally. complement cases(remove Chinese characters, optimize code, etc) , improve stability.
Supports setting whether to keep records of statistics synchronization job info, convenient for use in p0 testing.
The statistics job table was modified, and some auxiliary judgments were added to avoid the user perceiving the modification. This function was removed when the table schema is stable.
Reminiscent pushed a commit to Reminiscent/doris that referenced this pull request May 15, 2023
…cimalv2 type (apache#19077)

* prohibits date and decimal type

* add config in test
Reminiscent pushed a commit to Reminiscent/doris that referenced this pull request May 15, 2023
…pache#19247)

This PR enables periodic collection of statistics and is a precursor to automatic statistics collection. It mainly includes the following contents:

support periodic collection of statistics.
Change the type of Date in statistics p0 to DateV2(see [Enhancement](data-type) add FE config to prohibit create date and decimalv2 type apache#19077) for test locally. complement cases(remove Chinese characters, optimize code, etc) , improve stability.
Supports setting whether to keep records of statistics synchronization job info, convenient for use in p0 testing.
The statistics job table was modified, and some auxiliary judgments were added to avoid the user perceiving the modification. This function was removed when the table schema is stable.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by one committer. area/planner Issues or PRs related to the query planner dev/2.0.0-alpha1-merged kind/behavior-changed kind/docs Categorizes issue or PR as related to documentation. reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants