Hive dialect name error #6146
Labels
bug
Bugs bugs bugs!
DevRel Triage
devrel
This item is being addressed by the Developer Relations Team
Describe the bug
The Hive dialect name is
b'hive'
, which is of type bytes and not str. This causes issues in the dialect comparison here:great_expectations/great_expectations/execution_engine/sqlalchemy_dialect.py
Lines 27 to 30 in 1af478a
This issue applies to GE versions 0.15.23+.
This appears to be a regression introduced by #5980. Note that
b'foo' == 'foo'
is False buthash(b'foo') == hash('foo')
is True, which is probably why this code worked before.To Reproduce
We're running into this issue from the DataHub project, which depends on GE as a library. Hopefully the stack trace below has enough context, but I can try to provide more if needed.
Stack trace that I see:
Expected behavior
No crashes.
Environment (please complete the following information):
Additional context
DataHub introduced a temporary fix: datahub-project/datahub#5980.
The text was updated successfully, but these errors were encountered: