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

toFloat() monotonicity fixed #6374

Merged

Conversation

dimarub2000
Copy link
Contributor

I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en

For changelog. Remove if this is non-significant change.

Category (leave one):

  • Bug Fix

Short description (up to few sentences):
Fixes #6248

Copy link
Member

@alexey-milovidov alexey-milovidov left a comment

Choose a reason for hiding this comment

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

Not enough.

@alexey-milovidov
Copy link
Member

Need to add a test:

  • for the issue;
  • to check that the index by integer or decimal continue to work if you convert toFloat64.

@dimarub2000
Copy link
Contributor Author

Tests will be added soon.

@@ -1366,8 +1366,8 @@ using FunctionToInt8 = FunctionConvert<DataTypeInt8, NameToInt8, ToIntMonotonici
using FunctionToInt16 = FunctionConvert<DataTypeInt16, NameToInt16, ToIntMonotonicity<Int16>>;
using FunctionToInt32 = FunctionConvert<DataTypeInt32, NameToInt32, ToIntMonotonicity<Int32>>;
using FunctionToInt64 = FunctionConvert<DataTypeInt64, NameToInt64, ToIntMonotonicity<Int64>>;
using FunctionToFloat32 = FunctionConvert<DataTypeFloat32, NameToFloat32, PositiveMonotonicity>;
using FunctionToFloat64 = FunctionConvert<DataTypeFloat64, NameToFloat64, PositiveMonotonicity>;
using FunctionToFloat32 = FunctionConvert<DataTypeFloat32, NameToFloat32, ToIntMonotonicity<Float32>>;
Copy link
Member

Choose a reason for hiding this comment

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

But now the template name is idiosyncratic.

@alexey-milovidov alexey-milovidov merged commit 80e68a8 into ClickHouse:master Aug 8, 2019
@CurtizJ CurtizJ added the pr-bugfix Pull request with bugfix, not backported by default label Aug 9, 2019
CurtizJ pushed a commit that referenced this pull request Aug 9, 2019
toFloat() monotonicity fixed

(cherry picked from commit 80e68a8)
CurtizJ pushed a commit that referenced this pull request Aug 9, 2019
toFloat() monotonicity fixed

(cherry picked from commit 80e68a8)
@dimarub2000 dimarub2000 deleted the fix_toFloat_monotonicity branch August 19, 2019 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-bugfix Pull request with bugfix, not backported by default
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Confused by toFloat64() comparison
3 participants