-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[PECO-1803] Splitting the PySql connector into the core and the non core part #417
Changes from 50 commits
335fc0c
ad2b014
882e080
98c4cd6
25a006d
1cfaae2
c576110
0ddca9d
786dc1e
c91d43d
b67b739
32e3dcd
d062887
9908976
af0cd4f
a07c232
f0c8e7a
46ae0f7
8c5e7dd
24730dd
61de281
bad7c0b
520d2c8
051bdce
4d64034
93848d7
f37f42c
0e4b599
8199832
613e7dc
c4a2e08
6f10ec6
2115db1
36c0f95
15d5047
8415230
15df683
b4c3029
bc758d8
31da868
f79fc69
d121fed
6e393b0
2383caf
dd4c487
6be085c
e7cf5c3
b6a5668
4496a04
726b8ed
66bfa6d
2c1cfbd
ae20a65
f056c80
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
[tool.poetry] | ||
name = "databricks-sql-connector" | ||
version = "3.3.0" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As we change the package structure in this release. I would suggest to bump the major version to |
||
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" | ||
|
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.2.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"] |
kravets-levko marked this conversation as resolved.
Show resolved
Hide resolved
|
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") |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
import logging | ||
import math | ||
import time | ||
from unittest import skipUnless | ||
|
||
import pytest | ||
from tests.e2e.common.predicates import pysql_supports_arrow | ||
|
||
log = logging.getLogger(__name__) | ||
|
||
|
@@ -40,6 +44,7 @@ def fetch_rows(self, cursor, row_count, fetchmany_size): | |
+ "assuming 10K fetch size." | ||
) | ||
|
||
@skipUnless(pysql_supports_arrow(), "Without pyarrow lz4 compression is not supported") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's stick with |
||
def test_query_with_large_wide_result_set(self): | ||
resultSize = 300 * 1000 * 1000 # 300 MB | ||
width = 8192 # B | ||
|
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.
I think this is some accidental change - please revert it