Repository navigation
feat: row and dataset hashing on one canonical row encoding - #2758
Merged
Merged
Conversation
- row_hash() scalar function and multiset_hash() aggregate - analyze()->withDatasetHash() reports an order-independent dataset hash - group, join, distinct and bucket keys use the same typed encoding - keys have the declared type of their column - flow_php extension hashes natively, ABI 4 - hash() takes an algorithm name, NativePHPHash renamed to PhpAlgorithm - detached xml elements stored in canonical form - unreachable legacy element physical form removed
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## 1.x #2758 +/- ##
============================================
+ Coverage 91.10% 91.13% +0.02%
- Complexity 0 32591 +32591
============================================
Files 2242 2256 +14
Lines 93524 94061 +537
============================================
+ Hits 85209 85726 +517
- Misses 8315 8335 +20 🚀 New features to boost your workflow:
|
- per-partition dataset hashes, combined with DatasetHash::plus() - Hash, PartitionHash and DatasetHash report types - multiset digest travels only as hex, Rust and PHP accept the same form - empty string partition values written as name= and read back - ExternalSortTest scripts its memory instead of reading the process
- row, group, run and partition hashes on one page with run examples - null and empty partition values in partitioning
- MultisetHashAlgorithm: xxh128, md5, sha256 - withDatasetHash(array $partitions, MultisetHashAlgorithm $algorithm) - DatasetHash reports its algorithm - plus() refuses hashes of different algorithms - flow_php extension hashes with the same algorithms
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves: #xxx
Change Log
Added
flow-php/etl-row_hash()scalar function, a typed xxh128 hash of the rowflow-php/etl-multiset_hash()aggregate, an order-independent hash of all rowsflow-php/etl-analyze()->withDatasetHash()andReport::datasetHash()flow-php/etl-analyze()->withDatasetHash(ref('date'))hashes every partition of the outputflow-php/etl-Hash,PartitionHashandDatasetHashreport typesflow-php/etl-DatasetHash::plus()combines the hashes of two runsflow-php/etl-hash_algorithm()DSL functionflow-php/etl-Backend::rowHashes()andBackend::groupedMultisetHashes()flow-php/flow-php-ext- native row hashes and grouped multiset hashesflow-php/filesystem- an empty string is a valid partition value, written as the foldername=flow-php/etl- Hashing documentation pageFixed
flow-php/etl- detached XML elements are stored in canonical formflow-php/etl-ExternalSortTestscripts its memory instead of reading the test processChanged
flow-php/etl- group, join, distinct and bucket keys use one typed canonical encodingflow-php/etl- keys have the declared type of their columnflow-php/etl-hash()takes an algorithm nameflow-php/etl-NativePHPHashrenamed toPhpAlgorithmflow-php/etl-PhpAlgorithmthrows the FlowInvalidArgumentExceptionflow-php/flow-php-ext- ABI version 4flow-php/flow-php-ext- group table and partitioning use the canonical key encodingRemoved
Deprecated
Security