-
Notifications
You must be signed in to change notification settings - Fork 29.3k
[SPARK-7591] [SQL] Partitioning support API tweaks #6150
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
Changes from 4 commits
047d40d
522c24e
189ad23
2fc680a
37d1738
af422e7
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 |
|---|---|---|
|
|
@@ -35,6 +35,10 @@ private[sql] case class Partition(values: Row, path: String) | |
| private[sql] case class PartitionSpec(partitionColumns: StructType, partitions: Seq[Partition]) | ||
|
|
||
| private[sql] object PartitioningUtils { | ||
| // This duplicates default value of Hive `ConfVars.DEFAULTPARTITIONNAME`, since sql/core doesn't | ||
| // depend on Hive. | ||
| private[sql] val DEFAULT_PARTITION_NAME = "__HIVE_DEFAULT_PARTITION__" | ||
|
Contributor
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. can the hive one reference this one?
Contributor
Author
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. Not sure whether this is a good idea, since we are trying to be Hive compatible... Definitions from official Hive code should be the "standard" here. |
||
|
|
||
| private[sql] case class PartitionValues(columnNames: Seq[String], literals: Seq[Literal]) { | ||
| require(columnNames.size == literals.size) | ||
| } | ||
|
|
||
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.
override?