-
Notifications
You must be signed in to change notification settings - Fork 115
Case Sensitivity: Support Case Insensitive Index Column Names #78
Conversation
and added some tests
src/main/scala/com/microsoft/hyperspace/actions/CreateActionBase.scala
Outdated
Show resolved
Hide resolved
src/main/scala/com/microsoft/hyperspace/actions/CreateActionBase.scala
Outdated
Show resolved
Hide resolved
src/main/scala/com/microsoft/hyperspace/actions/CreateActionBase.scala
Outdated
Show resolved
Hide resolved
src/main/scala/com/microsoft/hyperspace/util/IndexNameUtils.scala
Outdated
Show resolved
Hide resolved
src/main/scala/com/microsoft/hyperspace/util/IndexNameUtils.scala
Outdated
Show resolved
Hide resolved
src/main/scala/com/microsoft/hyperspace/util/IndexNameUtils.scala
Outdated
Show resolved
Hide resolved
src/main/scala/com/microsoft/hyperspace/index/rules/JoinIndexRule.scala
Outdated
Show resolved
Hide resolved
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.
done
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.
initial review done
and added some tests
…1 into casesensitivity
src/main/scala/com/microsoft/hyperspace/util/ResolverUtils.scala
Outdated
Show resolved
Hide resolved
src/main/scala/com/microsoft/hyperspace/util/ResolverUtils.scala
Outdated
Show resolved
Hide resolved
src/main/scala/com/microsoft/hyperspace/util/ResolverUtils.scala
Outdated
Show resolved
Hide resolved
src/main/scala/com/microsoft/hyperspace/index/rules/JoinIndexRule.scala
Outdated
Show resolved
Hide resolved
src/main/scala/com/microsoft/hyperspace/util/ResolverUtils.scala
Outdated
Show resolved
Hide resolved
src/main/scala/com/microsoft/hyperspace/util/ResolverUtils.scala
Outdated
Show resolved
Hide resolved
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.
LGTM, thnx @apoorvedave1
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.
LGTM.
src/test/scala/com/microsoft/hyperspace/index/rules/JoinIndexRuleTest.scala
Outdated
Show resolved
Hide resolved
src/test/scala/com/microsoft/hyperspace/index/rules/JoinIndexRuleTest.scala
Show resolved
Hide resolved
src/test/scala/com/microsoft/hyperspace/index/CreateIndexTests.scala
Outdated
Show resolved
Hide resolved
src/test/scala/com/microsoft/hyperspace/index/CreateIndexTests.scala
Outdated
Show resolved
Hide resolved
src/test/scala/com/microsoft/hyperspace/index/CreateIndexTests.scala
Outdated
Show resolved
Hide resolved
src/test/scala/com/microsoft/hyperspace/index/E2EHyperspaceRulesTests.scala
Outdated
Show resolved
Hide resolved
src/main/scala/com/microsoft/hyperspace/util/ResolverUtils.scala
Outdated
Show resolved
Hide resolved
src/main/scala/com/microsoft/hyperspace/util/ResolverUtils.scala
Outdated
Show resolved
Hide resolved
src/main/scala/com/microsoft/hyperspace/actions/CreateActionBase.scala
Outdated
Show resolved
Hide resolved
src/main/scala/com/microsoft/hyperspace/actions/CreateActionBase.scala
Outdated
Show resolved
Hide resolved
src/main/scala/com/microsoft/hyperspace/index/rules/JoinIndexRule.scala
Outdated
Show resolved
Hide resolved
src/main/scala/com/microsoft/hyperspace/index/rules/JoinIndexRule.scala
Outdated
Show resolved
Hide resolved
src/main/scala/com/microsoft/hyperspace/index/rules/JoinIndexRule.scala
Outdated
Show resolved
Hide resolved
src/main/scala/com/microsoft/hyperspace/index/rules/JoinIndexRule.scala
Outdated
Show resolved
Hide resolved
src/main/scala/com/microsoft/hyperspace/index/rules/JoinIndexRule.scala
Outdated
Show resolved
Hide resolved
src/main/scala/com/microsoft/hyperspace/index/rules/JoinIndexRule.scala
Outdated
Show resolved
Hide resolved
@apoorvedave1 Can you resolve conflicts please? |
# Conflicts: # src/main/scala/com/microsoft/hyperspace/actions/CreateActionBase.scala
# Conflicts: # src/test/scala/com/microsoft/hyperspace/index/E2EHyperspaceRulesTests.scala
src/main/scala/com/microsoft/hyperspace/index/rules/JoinIndexRule.scala
Outdated
Show resolved
Hide resolved
src/test/scala/com/microsoft/hyperspace/index/E2EHyperspaceRulesTests.scala
Show resolved
Hide resolved
# Conflicts: # src/test/scala/com/microsoft/hyperspace/actions/CreateActionTest.scala
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.
LGTM (one nit comment), thanks @apoorvedave1!
This fixes #27
What changes were proposed in this pull request?
Currently index creation and usage is case sensitive. This PR addresses the issue by using "spark.sql.caseSensitivity" to determine whether to support case sensitivity or not. It adds support to use indexes if the original query is case insensitive.
Why are the changes needed?
Currently index creation and usage is case sensitive.
If base table has columns "c1", "c2" and the query is "SELECT C1, C2 FROM T WHERE...." the indexes cannot be used beause the rules do a case-sensitive matching irrespective of the value of "spark.sql.caseSensitivity".
Does this PR introduce any user-facing change?
No
How was this patch tested?
Added unit tests to cover case-insensitive scenarios