Database Prefixes are Case-Sensitive
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
Research direction
Reproduce the issue with Waggle Dance configured with a prefixed_ HMS prefix, comparing get_database() and get_table() calls against the listed mixed-case scenarios. Trace how the prefix is matched and verify that database names are handled case-insensitively while preserving the expected NoSuchObjectException behavior.
Written by the indexing model from the issue text.
Description
Describe the bug
The get_database() and get_table() methods are case-sensitive when using a HMS with a prefix.
Hive Metastore Directly, no prefix
When connecting directly to the Hive Metastore via Thrift, everything works as expected. Running get_database() for each of these scenarios:
my_database: Success 👍
MY_DATABASE: Success 👍
my_database_does_not_exist: NoSuchObjectException(message='my_database_does_not_exist') 👍
MY_DATABASE_DOES_NOT_EXIST: NoSuchObjectException(message='MY_DATABASE_DOES_NOT_EXIST') 👍
Waggle Dance with a Prefix
However, when connecting to Waggle Dance and adding a prefix, it becomes case-sensitive:
prefixed_my_database: Success 👍PREFIXED_MY_DATABASE:NoSuchObjectException(message='prefixed_my_database')"❌prefixed_my_database_does_not_exist:NoSuchObjectException(message='my_database_does_not_exist')"👍PREFIXED_MY_DATABASE_DOES_NOT_EXIST:NoSuchObjectException(message='prefixed_my_database_does_not_exist')"👍
Note, the NoSuchObjectException message differs in the last two scenarios; one contains the prefix and the other does not. This suggests that the lowercase version matched the prefix config, but then discovered that the database doesn't exist. Whereas the ALL CAPS version didn't match the prefix config, and attempted the entire database name, which also doesn't exist.
The same behavior occurs with get_table(), but only the database name is case-sensitive
To Reproduce
Waggle Dance configured with a prefixed_ prefix for the HMS.
Expected behavior
Database names should be case-insensitive.
- Dominant language
- Java
- Stars
- 289
- Forks
- 79
- Avg merge
- 1d 18h
- Merged PRs (30d)
- 4
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ExpediaGroup/waggle-dance
-
Difficulty 2/5 1-3 hours Newbie friendliness 50/100
ExpediaGroup/waggle-dance#341 ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
ExpediaGroup/waggle-dance#323 · 1 comment ·
-
Can we implement a MetaStoreFilterHook to modify the path and support HMS that uses the same nsOpen
Difficulty 5/5 Over a week Newbie friendliness 35/100
ExpediaGroup/waggle-dance#320 · 9 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
ExpediaGroup/waggle-dance#288 · 6 comments ·
-
Kerberos IssueOpen
Difficulty 4/5 3-5 days Newbie friendliness 20/100
ExpediaGroup/waggle-dance#287 · 12 comments ·
All issues in ExpediaGroup/waggle-dance
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
avaje/avaje-metrics#142 · 1 comment ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
RamazanKara/nightjar#299 · 4 comments ·
-
Support emergency=access_point (POI type and rendering)Possibly taken @julenepj claimed this 1 day ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
osmandapp/OsmAnd#27424 · 1 comment ·
Maintainers usually reply within 1 day
-
Link not working in the feedback concerning String.format() in exercise 'Tim from Marketing'Possibly taken @LaibaMunir016 claimed this 1 day ago. Open
Difficulty 1/5 Under an hour Newbie friendliness 88/100
exercism/java-analyzer#379 · 1 comment ·
-
TasksRunnerService.decode() should treat an empty lambdaBody as absentPossibly taken @gky051224 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
redisson/redisson#7477 · 1 comment ·
Maintainers usually reply within 2 days