Skip to content

Comments

Refactor PartitionKeys and add StoragePartition#99

Merged
JacobHayes merged 9 commits intogoldenfrom
partitioning
Sep 29, 2021
Merged

Refactor PartitionKeys and add StoragePartition#99
JacobHayes merged 9 commits intogoldenfrom
partitioning

Conversation

@JacobHayes
Copy link
Member

As part of filling out the partitioning logic, I:

  • removed the Partitioner (to be replaced with a field reference/operation in the future)
  • redesigned PartitionKey to be a simple value with a set of optional key_components that can subdivide the key
  • added a new StoragePartition concept representing a single partition containing named PartitionKeys
  • redesigned Storage to discover/build StoragePartition given the set of partition key types and a format-string referencing PartitionKey values (or their components).

This still needs more tweaking (in future PRs/work), but largely things that will build on top of this (introducing ArtifactPartition, working out Producer.map, etc).

@JacobHayes JacobHayes self-assigned this Sep 22, 2021
@codecov
Copy link

codecov bot commented Sep 22, 2021

Codecov Report

Merging #99 (a16fc3f) into golden (c697886) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##            golden       #99    +/-   ##
==========================================
  Coverage   100.00%   100.00%            
==========================================
  Files           24        26     +2     
  Lines         1175      1419   +244     
  Branches       156       197    +41     
==========================================
+ Hits          1175      1419   +244     
Impacted Files Coverage Δ
src/arti/artifacts/__init__.py 100.00% <100.00%> (ø)
src/arti/internal/models.py 100.00% <100.00%> (ø)
src/arti/internal/type_hints.py 100.00% <100.00%> (ø)
src/arti/io/__init__.py 100.00% <100.00%> (ø)
src/arti/partitions/__init__.py 100.00% <100.00%> (ø)
src/arti/storage/__init__.py 100.00% <100.00%> (ø)
src/arti/storage/_internal.py 100.00% <100.00%> (ø)
src/arti/storage/local.py 100.00% <100.00%> (ø)
src/arti/types/__init__.py 100.00% <100.00%> (ø)
src/arti/views/__init__.py 100.00% <100.00%> (ø)
... and 2 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c697886...a16fc3f. Read the comment docs.

@JacobHayes JacobHayes merged commit df64cef into golden Sep 29, 2021
@JacobHayes JacobHayes deleted the partitioning branch September 29, 2021 23:35
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.

1 participant