Skip to content
This repository was archived by the owner on Jun 14, 2024. It is now read-only.

Conversation

@imback82
Copy link
Contributor

@imback82 imback82 commented Nov 2, 2020

What is the context for this pull request?

Few clean ups related to configs:

  • Renamed spark.hyperspace.index.num.buckets to spark.hyperspace.index.numBuckets, but supports the legacy config.
  • Removed unused configs: spark.hyperspace.index.creation.path and spark.hyperspace.index.search.paths.

What changes were proposed in this pull request?

This PR proposes to rename spark.hyperspace.index.num.buckets to spark.hyperspace.index.numBuckets and clean up unused configs.

Does this PR introduce any user-facing change?

No, since legacy config is still honored.

How was this patch tested?

Added new tests testing falling back to legacy configs.

@imback82 imback82 changed the title Clean up Hyperspace-relate configs Clean up Hyperspace-related configs Nov 2, 2020
Comment on lines -76 to -89
def indexCreationPath: Path = {
getOption(IndexConstants.INDEX_CREATION_PATH)
.map(new Path(_, IndexConstants.INDEXES_DIR))
.getOrElse(new Path(systemPath, IndexConstants.INDEXES_DIR))
}

/**
* Get the Hyperspace index search paths.
*
* @return Hyperspace index search paths.
*/
def indexSearchPaths: Option[Seq[String]] = {
getOption(IndexConstants.INDEX_SEARCH_PATHS)
.map(_.split(',').toSeq)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are not currently not used. I will create a separate issue to implement this scenario.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Created #243.

@sezruby
Copy link
Collaborator

sezruby commented Nov 3, 2020

LGTM thanks!

@imback82 imback82 self-assigned this Nov 3, 2020
@imback82 imback82 added the enhancement New feature or request label Nov 3, 2020
@imback82 imback82 added this to the October 2020 milestone Nov 3, 2020
@imback82 imback82 merged commit ad23a75 into microsoft:master Nov 3, 2020
@imback82 imback82 deleted the config_cleanup branch November 3, 2020 20:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants