Skip to content

Tests for zarrita compatibility - #2

Merged
normanrz merged 54 commits into
zarr-developers:mainfrom
scalableminds:test-zarrita-compatibility
Jun 3, 2024
Merged

Tests for zarrita compatibility#2
normanrz merged 54 commits into
zarr-developers:mainfrom
scalableminds:test-zarrita-compatibility

Conversation

@brokkoli71

Copy link
Copy Markdown
Contributor

This PR should implement full zarrita compatibility.
Any array written by zarrita should be readable by zarr-java and vice versa

TODO:

  • tests for zarrita compatibility
  • fix transpose codec
  • fix sharding codec
  • fix zstd codec
  • test crc32c codec
  • zarrita gets installed in CI

@normanrz normanrz changed the title zarrita compatibility Tests for zarrita compatibility May 30, 2024
Comment thread pom.xml Outdated
Comment thread src/test/java/dev/zarr/zarrjava/ZarrTest.java Outdated
Comment thread src/test/java/dev/zarr/zarrjava/ZarrTest.java Outdated
@normanrz
normanrz merged commit 98c25d5 into zarr-developers:main Jun 3, 2024
normanrz added a commit to konstibob/zarr-java that referenced this pull request Jul 30, 2026
…t_value

Fix zarr-developers#1 (correctness): CastValueConverter.roundToFloat/roundToDouble treated
nearest-away as nearest-even for floating-point targets, so exact ties rounded
to even instead of away from zero (spec violation for float->float narrowing).
Both now round ties away from zero and fall back to nearest for non-ties.

Fix zarr-developers#2 (performance): castArray now dispatches common casts (identity,
float<->float, integer->integer) to primitive-arithmetic paths, avoiding the
per-element Scalar/BigDecimal/BigInteger allocation of the exact path. Casts
with scalar_map, uint64, or float directed-rounding fall back to the exact path,
which remains the correctness reference.

Adds tests for the float nearest-away tie and the integer/identity fast paths.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants