-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PECO-1803] Splitting the PySql connector into the core and the non c…
…ore part (#417) * Implemented ColumnQueue to test the fetchall without pyarrow Removed token removed token * order of fields in row corrected * Changed the folder structure and tested the basic setup to work * Refractored the code to make connector to work * Basic Setup of connector, core and sqlalchemy is working * Basic integration of core, connect and sqlalchemy is working * Setup working dynamic change from ColumnQueue to ArrowQueue * Refractored the test code and moved to respective folders * Added the unit test for column_queue Fixed __version__ Fix * venv_main added to git ignore * Added code for merging columnar table * Merging code for columnar * Fixed the retry_close sesssion test issue with logging * Fixed the databricks_sqlalchemy tests and introduced pytest.ini for the sqla_testing * Added pyarrow_test mark on pytest * Fixed databricks.sqlalchemy to databricks_sqlalchemy imports * Added poetry.lock * Added dist folder * Changed the pyproject.toml * Minor Fix * Added the pyarrow skip tag on unit tests and tested their working * Fixed the Decimal and timestamp conversion issue in non arrow pipeline * Removed not required files and reformatted * Fixed test_retry error * Changed the folder structure to src / databricks * Removed the columnar non arrow flow to another PR * Moved the README to the root * removed columnQueue instance * Revmoved databricks_sqlalchemy dependency in core * Changed the pysql_supports_arrow predicate, introduced changes in the pyproject.toml * Ran the black formatter with the original version * Extra .py removed from all the __init__.py files names * Undo formatting check * Check * Check * Check * Check * Check * Check * Check * Check * Check * Check * Check * Check * Check * Check * BIG UPDATE * Refeactor code * Refractor * Fixed versioning * Minor refractoring * Minor refractoring
- Loading branch information
1 parent
9cb1ea3
commit 4099939
Showing
89 changed files
with
162 additions
and
4,232 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
[tool.poetry] | ||
name = "databricks-sql-connector" | ||
version = "3.5.0" | ||
description = "Databricks SQL Connector for Python" | ||
authors = ["Databricks <[email protected]>"] | ||
license = "Apache-2.0" | ||
|
||
|
||
[tool.poetry.dependencies] | ||
databricks_sql_connector_core = { version = ">=1.0.0", extras=["all"]} | ||
databricks_sqlalchemy = { version = ">=1.0.0", optional = true } | ||
|
||
[tool.poetry.extras] | ||
databricks_sqlalchemy = ["databricks_sqlalchemy"] | ||
|
||
[tool.poetry.urls] | ||
"Homepage" = "https://github.com/databricks/databricks-sql-python" | ||
"Bug Tracker" = "https://github.com/databricks/databricks-sql-python/issues" | ||
|
||
[build-system] | ||
requires = ["poetry-core>=1.0.0"] | ||
build-backend = "poetry.core.masonry.api" | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,26 @@ | ||
[tool.poetry] | ||
name = "databricks-sql-connector" | ||
version = "3.3.0" | ||
description = "Databricks SQL Connector for Python" | ||
name = "databricks-sql-connector-core" | ||
version = "1.0.0" | ||
description = "Databricks SQL Connector core for Python" | ||
authors = ["Databricks <[email protected]>"] | ||
license = "Apache-2.0" | ||
readme = "README.md" | ||
packages = [{ include = "databricks", from = "src" }] | ||
include = ["CHANGELOG.md"] | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.8.0" | ||
thrift = ">=0.16.0,<0.21.0" | ||
pandas = [ | ||
{ version = ">=1.2.5,<2.3.0", python = ">=3.8" } | ||
] | ||
pyarrow = ">=14.0.1,<17" | ||
|
||
lz4 = "^4.0.2" | ||
requests = "^2.18.1" | ||
oauthlib = "^3.1.0" | ||
numpy = [ | ||
{ version = "^1.16.6", python = ">=3.8,<3.11" }, | ||
{ version = "^1.23.4", python = ">=3.11" }, | ||
] | ||
sqlalchemy = { version = ">=2.0.21", optional = true } | ||
openpyxl = "^3.0.10" | ||
alembic = { version = "^1.0.11", optional = true } | ||
urllib3 = ">=1.26" | ||
pyarrow = {version = ">=14.0.1,<17", optional = true} | ||
|
||
[tool.poetry.extras] | ||
sqlalchemy = ["sqlalchemy"] | ||
alembic = ["sqlalchemy", "alembic"] | ||
pyarrow = ["pyarrow"] | ||
|
||
[tool.poetry.dev-dependencies] | ||
pytest = "^7.1.2" | ||
|
@@ -43,8 +33,6 @@ pytest-dotenv = "^0.5.2" | |
"Homepage" = "https://github.com/databricks/databricks-sql-python" | ||
"Bug Tracker" = "https://github.com/databricks/databricks-sql-python/issues" | ||
|
||
[tool.poetry.plugins."sqlalchemy.dialects"] | ||
"databricks" = "databricks.sqlalchemy:DatabricksDialect" | ||
|
||
[build-system] | ||
requires = ["poetry-core>=1.0.0"] | ||
|
@@ -62,5 +50,5 @@ markers = {"reviewed" = "Test case has been reviewed by Databricks"} | |
minversion = "6.0" | ||
log_cli = "false" | ||
log_cli_level = "INFO" | ||
testpaths = ["tests", "src/databricks/sqlalchemy/test_local"] | ||
testpaths = ["tests", "databricks_sql_connector_core/tests"] | ||
env_files = ["test.env"] |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
databricks_sql_connector_core/src/databricks/sqlalchemy/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
try: | ||
from databricks_sqlalchemy import * | ||
except: | ||
import warnings | ||
|
||
warnings.warn("Install databricks-sqlalchemy plugin before using this") |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.