Replies: 1 comment
-
I find out that partitions are explicitly sorted by a reason in here
It's quite a big issue, coz a partions order and their names have matter to organize data hierarchy as needed. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Today, if I have a multi partitioned asset, the folder levels in storage reflect the alphabetical ordering of the partition names. I would like to suggest it to reflect the ordering that is passed to the MultiPartitionsDefinition.
Example:
will create the following directory structure in $dagster_home/storage:
2023-04-01/tic1
2023-04-01/tic2
2023-05-01/tic1
2023-05-01/tic2
If I rename the "run_day" partitions definition to "today"
the order changes to
tic1/2023-04-01
tic1/2023-05-01
tic2/2023-04-01
tic2/2023-05-01
But it is weird to play with names (and find meaningful ones) just to keep an ordering of files that makes more sense (for other systems, for example).
I would like to suggest that the order of
partitions_defs
is respected. So:would have
ticker
as first level, whilewould have
run_day
as first level.Beta Was this translation helpful? Give feedback.
All reactions