Skip to content

Enable comparison between Decimal and Float - #31966

Merged
CurtizJ merged 16 commits into
ClickHouse:masterfrom
ucasfl:comp-decimal-float
Jan 14, 2022
Merged

CurtizJ merged 16 commits into
ClickHouse:masterfrom
ucasfl:comp-decimal-float

Conversation

@ucasfl

@ucasfl ucasfl commented Nov 30, 2021 •

Copy link
Copy Markdown
Collaborator

Changelog category (leave one):

  • Improvement

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Enable comparison between Decimal and Float. Closes #22626.

@ucasfl
ucasfl force-pushed the comp-decimal-float branch from 2b76eeb to f27699c Compare November 30, 2021 03:30
@robot-clickhouse robot-clickhouse added the pr-improvement Pull request with some product improvements label Nov 30, 2021
@vdimir vdimir changed the title Enable comparison betwwen Decimal and Float Enable comparison betwen Decimal and Float Nov 30, 2021
@ucasfl ucasfl changed the title Enable comparison betwen Decimal and Float Enable comparison between Decimal and Float Dec 3, 2021
@qoega

qoega commented Dec 10, 2021

Copy link
Copy Markdown
Member

@vdimir vdimir added the can be tested Allows running workflows for external contributors label Dec 13, 2021
@vdimir

vdimir commented Dec 13, 2021

Copy link
Copy Markdown
Member

@Mergifyio update

@mergify

mergify Bot commented Dec 13, 2021

Copy link
Copy Markdown
Contributor

update

✅ Branch has been successfully updated

@ucasfl

ucasfl commented Dec 13, 2021

Copy link
Copy Markdown
Collaborator Author

@Mergifyio update

Why we need add the label everytime to run tests, does it is a problem of the ci?

@mergify

mergify Bot commented Dec 13, 2021

Copy link
Copy Markdown
Contributor

update

☑️ Nothing to do

Details
  • -closed [:pushpin: update requirement]
  • #commits-behind>0 [:pushpin: update requirement]

@CurtizJ CurtizJ self-assigned this Dec 13, 2021
@ucasfl

ucasfl commented Dec 14, 2021

Copy link
Copy Markdown
Collaborator Author

Current implementation is totally wrong, I will re-implement it later. I have some thoughts that I can refer to the comparison between float and int, but not very clear.

@vdimir

vdimir commented Dec 14, 2021

Copy link
Copy Markdown
Member

Why we need add the label everytime to run tests, does it is a problem of the ci?

Fixed in #32696

Current implementation is totally wrong, I will re-implement it later. I have some thoughts that I can refer to the comparison between float and int, but not very clear.

Let's convert to draft / close ?

@ucasfl
ucasfl marked this pull request as draft December 14, 2021 09:37
@ucasfl
ucasfl force-pushed the comp-decimal-float branch from f335500 to dc6f785 Compare December 23, 2021 03:56
Comment thread src/Core/DecimalFloatComparison.h Resolved
@ucasfl
ucasfl marked this pull request as ready for review December 24, 2021 05:09
fix
@ucasfl
ucasfl force-pushed the comp-decimal-float branch from bc0f139 to 80c5bfc Compare December 24, 2021 05:13
fix comment
@ucasfl
ucasfl force-pushed the comp-decimal-float branch from a9228d0 to 148fbb8 Compare December 24, 2021 05:25
@ucasfl

ucasfl commented Dec 24, 2021

Copy link
Copy Markdown
Collaborator Author
2021-12-24 10:16:54 01460_mark_inclusion_search_crash:                                      [ FAIL ] 0.31 sec. - return code: 158
2021-12-24 10:16:54 [12c190657c8b] 2021.12.24 10:16:54.660055 [ 32172 ] {28ebe7d9-5955-45bc-a89e-a2dfdf53fc8f} <Error> executeQuery: Code: 158. DB::Exception: Limit for rows (controlled by 'max_rows_to_read' setting) exceeded, max rows: 5.00, current rows: 6.00. (TOO_MANY_ROWS) (version 21.13.1.1238) (from [::1]:35030) (comment: 01460_mark_inclusion_search_crash.sql) (in query: SELECT toUInt32(x), y, z FROM pk WHERE (x >= toDateTime(100000))

Tests failed seems not related.

@ucasfl

ucasfl commented Dec 26, 2021

Copy link
Copy Markdown
Collaborator Author

@Mergifyio update.

@mergify

mergify Bot commented Dec 26, 2021

Copy link
Copy Markdown
Contributor

update .

✅ Branch has been successfully updated

@ucasfl

ucasfl commented Jan 10, 2022

Copy link
Copy Markdown
Collaborator Author

@CurtizJ Hi, could you help review this? It's already ready for review.

@ucasfl

ucasfl commented Jan 10, 2022

Copy link
Copy Markdown
Collaborator Author

@Mergifyio update.

@mergify

mergify Bot commented Jan 10, 2022

Copy link
Copy Markdown
Contributor

update .

✅ Branch has been successfully updated

Comment thread src/Functions/FunctionsComparison.h Resolved
Comment thread src/Functions/FunctionsComparison.h Resolved
@ucasfl
ucasfl force-pushed the comp-decimal-float branch from 04908fc to abea817 Compare January 13, 2022 03:25
@ucasfl

ucasfl commented Jan 13, 2022

Copy link
Copy Markdown
Collaborator Author

@Mergifyio update.

@mergify

mergify Bot commented Jan 13, 2022

Copy link
Copy Markdown
Contributor

update .

✅ Branch has been successfully updated

@CurtizJ

CurtizJ commented Jan 14, 2022

Copy link
Copy Markdown
Member

Test 02156_storage_merge_prewhere already fixed in master.

@CurtizJ
CurtizJ merged commit 12195b1 into ClickHouse:master Jan 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

can be tested Allows running workflows for external contributors pr-improvement Pull request with some product improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No operation greater between Decimal(9, 2) and Float64

7 participants