Merge pull request #307241 from annaleeleaves/duckdb-updates

duckdb, python311Packages.duckdb: 0.10.1 -> 0.10.2

Changed files
+21 -43
pkgs
development
libraries
python-modules
duckdb
duckdb-engine
sqlglot
+1
pkgs/development/libraries/duckdb/default.nix
···
# fails with Out of Memory Error
"test/sql/copy/parquet/batched_write/batch_memory_usage.test"
# wants http connection
+
"test/sql/copy/csv/recursive_query_csv.test"
"test/sql/copy/csv/test_mixed_lines.test"
] ++ lib.optionals stdenv.isAarch64 [
"test/sql/aggregate/aggregates/test_kurtosis.test"
+3 -3
pkgs/development/libraries/duckdb/versions.json
···
{
-
"version": "0.10.1",
-
"rev": "4a89d97db8a5a23a15f3025c8d2d2885337c2637",
-
"hash": "sha256-/j/DaUzsfACI5Izr4lblkYmIEmKsOXr760UTwC0l/qg="
+
"version": "0.10.2",
+
"rev": "1601d94f94a7e0d2eb805a94803eb1e3afbbe4ed",
+
"hash": "sha256-CTZ90KJvLPQqu1FYciEWsxJbvybCjeBsi/12bkfVd9Q="
}
+14 -11
pkgs/development/python-modules/duckdb-engine/default.nix
···
, duckdb
, hypothesis
, ipython-sql
+
, pandas
, poetry-core
+
, pytest-remotedata
, snapshottest
, sqlalchemy
, typing-extensions
···
buildPythonPackage rec {
pname = "duckdb-engine";
-
version = "0.11.2";
+
version = "0.12.0";
pyproject = true;
-
disabled = pythonOlder "3.7";
+
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
repo = "duckdb_engine";
owner = "Mause";
rev = "refs/tags/v${version}";
-
hash = "sha256-yW1gaZ0B6JNX98KzAxf146goniNmWnkMUmJRrScot1w=";
+
hash = "sha256-cm0vbz0VZ2Ws6FDWJO16q4KZW2obs0CBNrfY9jmR+6A=";
};
-
-
patches = [ ./remote_data.patch ];
nativeBuildInputs = [
poetry-core
···
'';
disabledTests = [
-
# this test tries to download the httpfs extension
-
"test_preload_extension"
-
"test_motherduck"
# test should be skipped based on sqlalchemy version but isn't and fails
"test_commit"
-
# rowcount no longer generates an attribute error.
-
"test_rowcount"
];
nativeCheckInputs = [
pytestCheckHook
+
];
+
+
checkInputs = [
hypothesis
ipython-sql
-
# TODO(cpcloud): include pandas here when it supports sqlalchemy 2.0
+
pandas
+
pytest-remotedata
snapshottest
typing-extensions
+
];
+
+
pytestFlagsArray = [
+
"-m" "'not remote_data'"
];
pythonImportsCheck = [
-24
pkgs/development/python-modules/duckdb-engine/remote_data.patch
···
-
diff --git a/duckdb_engine/tests/test_basic.py b/duckdb_engine/tests/test_basic.py
-
index 302636f..ed20f12 100644
-
--- a/duckdb_engine/tests/test_basic.py
-
+++ b/duckdb_engine/tests/test_basic.py
-
@@ -183,7 +183,6 @@ def test_get_views(engine: Engine) -> None:
-
-
-
@mark.skipif(os.uname().machine == "aarch64", reason="not supported on aarch64")
-
-@mark.remote_data
-
def test_preload_extension() -> None:
-
duckdb.default_connection.execute("INSTALL httpfs")
-
engine = create_engine(
-
diff --git a/duckdb_engine/tests/test_integration.py b/duckdb_engine/tests/test_integration.py
-
index 349c976..bf3dbaa 100644
-
--- a/duckdb_engine/tests/test_integration.py
-
+++ b/duckdb_engine/tests/test_integration.py
-
@@ -24,7 +24,6 @@ def test_integration(engine: Engine) -> None:
-
conn.execute(text("select * from test_df"))
-
-
-
-@mark.remote_data
-
@mark.skipif(
-
"dev" in duckdb.__version__, reason="md extension not available for dev builds" # type: ignore[attr-defined]
-
)
+1 -3
pkgs/development/python-modules/duckdb/default.nix
···
# 2. default to extension autoload & autoinstall disabled
substituteInPlace setup.py \
--replace-fail "ParallelCompile()" 'ParallelCompile("NIX_BUILD_CORES")' \
-
--replace-fail "define_macros.extend([('DUCKDB_EXTENSION_AUTOLOAD_DEFAULT', '1'), ('DUCKDB_EXTENSION_AUTOINSTALL_DEFAULT', '1')])" ""
+
--replace-fail "define_macros.extend([('DUCKDB_EXTENSION_AUTOLOAD_DEFAULT', '1'), ('DUCKDB_EXTENSION_AUTOINSTALL_DEFAULT', '1')])" "pass"
'';
env = {
···
DUCKDB_BUILD_UNITY = 1;
OVERRIDE_GIT_DESCRIBE="v${version}-0-g${rev}";
};
-
-
dontPretendSetuptoolsSCMVersion = true;
nativeBuildInputs = [
pybind11
+2 -2
pkgs/development/python-modules/sqlglot/default.nix
···
buildPythonPackage rec {
pname = "sqlglot";
-
version = "21.1.1";
+
version = "23.12.1";
pyproject = true;
disabled = pythonOlder "3.8";
···
repo = "sqlglot";
owner = "tobymao";
rev = "refs/tags/v${version}";
-
hash = "sha256-xMKDkhotVBkLzn+f9RMGCPfWTF4Rz9a193nSJv5z+iA=";
+
hash = "sha256-VUG/l1iZ/8vAJwhktN/tx8U8KVLgaghUPArtxEyIA54=";
};
nativeBuildInputs = [