Skip to content
This repository has been archived by the owner on Mar 26, 2022. It is now read-only.

Commit

Permalink
change dialect identifiers to string (#22)
Browse files Browse the repository at this point in the history
* change dialect identifiers to string

* update changelog
  • Loading branch information
crflynn authored Nov 22, 2021
1 parent 651c01c commit 6aaf222
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Release History
~~~~~~~~~~~~~~~~~

* ``pyhive`` and ``pyodbc`` are now optional dependencies. At least one of {``hive``, ``odbc``} must now be specified as an extra.
* Change driver and dialect identifiers from bytes to string.

0.5.0: 2021-02-25
~~~~~~~~~~~~~~~~~
Expand Down
4 changes: 2 additions & 2 deletions databricks_dbapi/sqlalchemy_dialects/hive.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@


class DatabricksPyhiveDialect(DatabricksDialectBase):
name = b"databricks"
driver = b"pyhive"
name = "databricks"
driver = "pyhive"

@classmethod
def dbapi(cls):
Expand Down
4 changes: 2 additions & 2 deletions databricks_dbapi/sqlalchemy_dialects/odbc.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@


class DatabricksPyodbcDialect(DatabricksDialectBase, PyODBCConnector):
name = b"databricks"
driver = b"pyodbc"
name = "databricks"
driver = "pyodbc"

@classmethod
def dbapi(cls):
Expand Down

0 comments on commit 6aaf222

Please sign in to comment.