Skip to content

Better diagnostic info in input formats#10418

Merged
alexey-milovidov merged 1 commit intomasterfrom
fix_logical_error_in_diagnostic_info
Apr 26, 2020
Merged

Better diagnostic info in input formats#10418
alexey-milovidov merged 1 commit intomasterfrom
fix_logical_error_in_diagnostic_info

Conversation

@tavplubix
Copy link
Member

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

Changelog category (leave one):

  • Bug Fix

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Minor improvements in printing diagnostic info in input formats. Fixes #10204

@tavplubix tavplubix added the pr-bugfix Pull request with bugfix, not backported by default label Apr 21, 2020
{
verbose_diagnostic = getDiagnosticInfo();
}
catch (Exception & exception)
Copy link
Member

Choose a reason for hiding this comment

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

const?


void CSVRowInputFormat::tryDeserializeFiled(const DataTypePtr & type, IColumn & column, size_t file_column,
ReadBuffer::Position & prev_pos, ReadBuffer::Position & curr_pos)
void CSVRowInputFormat::tryDeserializeFiled(const DataTypePtr & type, IColumn & column, size_t file_column)
Copy link
Member

Choose a reason for hiding this comment

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

Typo: Filed -> Field.

Copy link
Member

Choose a reason for hiding this comment

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

We also have 8 such typos in our codebase, let's fix them.

@tavplubix
Copy link
Member Author

tavplubix commented Apr 22, 2020

00700_decimal_bounds - Success when error expected. It expects server error 0, client error 69.
Looks like a bug in CAST:

:) select cast(1000*1000*1000, 'Decimal(9, 0)') as should_throw_overflow_exception

┌─should_throw_overflow_exception─┐
│                      1000000000 │
└─────────────────────────────────┘

And may be we should disable conversion from Float to Decimal128 in Values with expressions until we have Decimal literals

@alexey-milovidov
Copy link
Member

@4ertus2 Could you please help to clarify?

@tavplubix tavplubix force-pushed the fix_logical_error_in_diagnostic_info branch from 200072a to 53dcce5 Compare April 24, 2020 12:35
@alexey-milovidov alexey-milovidov merged commit c6ae6a7 into master Apr 26, 2020
@alexey-milovidov alexey-milovidov deleted the fix_logical_error_in_diagnostic_info branch April 26, 2020 17:27
tavplubix pushed a commit that referenced this pull request Apr 30, 2020
…stic_info

Better diagnostic info in input formats

(cherry picked from commit c6ae6a7)
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.

Logical error: parsing is non-deterministic.

3 participants