-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Asset Hierarchy - Remove single partition deletion flag #859
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -406,8 +406,8 @@ object DefaultSource { | |||||
val collectMetrics = toBoolean(parameters, "collectMetrics") | ||||||
val collectTestMetrics = toBoolean(parameters, "collectTestMetrics") | ||||||
|
||||||
val enableSinglePartitionDeleteAssetHierarchy = | ||||||
toBoolean(parameters, "enableSinglePartitionDeleteHierarchy", defaultValue = false) | ||||||
val userSinglePartition = | ||||||
toBoolean(parameters, "useSinglePartition", defaultValue = false) | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
not sure about the name... |
||||||
|
||||||
val saveMode = parseSaveMode(parameters) | ||||||
val parallelismPerPartition = { | ||||||
|
@@ -459,7 +459,7 @@ object DefaultSource { | |||||
subtrees = subtreesOption, | ||||||
ignoreNullFields = toBoolean(parameters, "ignoreNullFields", defaultValue = true), | ||||||
rawEnsureParent = toBoolean(parameters, "rawEnsureParent", defaultValue = true), | ||||||
enableSinglePartitionDeleteAssetHierarchy = enableSinglePartitionDeleteAssetHierarchy | ||||||
useSinglePartition = userSinglePartition | ||||||
) | ||||||
} | ||||||
|
||||||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -22,7 +22,7 @@ final case class RelationConfig( | |||||
subtrees: AssetSubtreeOption, | ||||||
ignoreNullFields: Boolean, | ||||||
rawEnsureParent: Boolean, | ||||||
enableSinglePartitionDeleteAssetHierarchy: Boolean // flag to test whether single partition helps avoid NPE in asset hierarchy builder | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we might want to keep it for potential future investigations if we see weird NPEs again, that be a way to get one of them ready There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah fair enough, I'll rename it to "useSinglePartition" or something |
||||||
useSinglePartition: Boolean // a flag for helping to test NPEs by moving the data frame to a single partition | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
or something. Maybe invert the name so that default values is false and it'd mean do repartition to 1. Also let's use repartition as default here |
||||||
) { | ||||||
|
||||||
/** Desired number of Spark partitions ~= partitions / parallelismPerPartition */ | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.