Skip to content

fix(database): preserve float precision and decimal notation in Float64CompactColumn - #958

Merged
ZhuchkaTriplesix merged 1 commit into
devfrom
issue/897-float-precision-decimal-notation
Sep 25, 2026
Merged

ZhuchkaTriplesix merged 1 commit into
devfrom
issue/897-float-precision-decimal-notation

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

Description

  • In Float64CompactColumn.stringValueAt in lib/core/database/compact_result_dataset.dart, removes the check that converted whole floating-point numbers to integers (val.toInt().toString()), preserving decimal notation (e.g. 1.0, 100.0, 0.0) and float precision.
  • Utilizes the optional StringInternPool to deduplicate common float string representations.
  • Updates existing tests in test/core/database/compact_result_dataset_test.dart to expect decimal representation for 0.0.
  • Adds unit tests verifying that Float64CompactColumn preserves decimal notation and floating-point precision across varied float values and whole numbers.

Closes #897

@github-actions github-actions Bot added bug Something isn't working data-grid Interactive data grid, cell editor, filtering, groupings backend Backend database driver execution and queries labels Sep 25, 2026
@github-actions github-actions Bot added this to the 0.4.18 milestone Sep 25, 2026
@ZhuchkaTriplesix
ZhuchkaTriplesix merged commit 4a8f5f5 into dev Sep 25, 2026
4 checks passed
@ZhuchkaTriplesix
ZhuchkaTriplesix deleted the issue/897-float-precision-decimal-notation branch September 28, 2026 08:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend Backend database driver execution and queries bug Something isn't working data-grid Interactive data grid, cell editor, filtering, groupings

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant