From 753bfaaa709417ab99710116040e5dac6c5c0566 Mon Sep 17 00:00:00 2001 From: kaarthik108 Date: Sun, 24 Sep 2023 13:30:15 +1300 Subject: [PATCH] use stable version --- examples/src/sproc/test_sproc/app.toml | 2 +- poetry.lock | 18 +++++++++--------- pyproject.toml | 2 +- snowdev/fillers/sproc/fill.toml | 2 +- snowdev/fillers/udf/fill.toml | 2 +- src/sproc/test_new_/app.py | 4 ++-- src/sproc/test_new_/app.toml | 3 +-- src/udf/test_new_/app.toml | 2 +- 8 files changed, 17 insertions(+), 18 deletions(-) diff --git a/examples/src/sproc/test_sproc/app.toml b/examples/src/sproc/test_sproc/app.toml index 153cb97..90f32f8 100644 --- a/examples/src/sproc/test_sproc/app.toml +++ b/examples/src/sproc/test_sproc/app.toml @@ -5,4 +5,4 @@ role = "" [tool.poetry.dependencies] python = "3.10.0" -snowflake-snowpark-python = "1.5.1" +snowflake-snowpark-python = "1.6.1" \ No newline at end of file diff --git a/poetry.lock b/poetry.lock index 71c848d..37db24e 100644 --- a/poetry.lock +++ b/poetry.lock @@ -2516,13 +2516,13 @@ torch = ["torchdata (>=0.4,<1)"] [[package]] name = "snowflake-snowpark-python" -version = "1.8.0" +version = "1.6.1" description = "Snowflake Snowpark for Python" optional = false python-versions = ">=3.8, <3.11" files = [ - {file = "snowflake-snowpark-python-1.8.0.tar.gz", hash = "sha256:62d3d353fb48149a3cb256331078257cf51e122f8c8b5f38a686a364f845c467"}, - {file = "snowflake_snowpark_python-1.8.0-py3-none-any.whl", hash = "sha256:78fde4313fa8a713586d3af14d3ca4437f899627c7c36b9e5e81999e8acf9ce2"}, + {file = "snowflake-snowpark-python-1.6.1.tar.gz", hash = "sha256:a34b133ad9530ca02ab5ee449761250cb24e195bd8ff13894c1650c53d10ca87"}, + {file = "snowflake_snowpark_python-1.6.1-py3-none-any.whl", hash = "sha256:1e1ba7ae56469b7381a49bceda28a727c4835cd45163840f7afc93febe9525b8"}, ] [package.dependencies] @@ -2530,15 +2530,15 @@ cloudpickle = ">=1.6.0,<=2.0.0" pyyaml = "*" setuptools = ">=40.6.0" snowflake-connector-python = [ - {version = ">=3.2.0,<4.0.0"}, - {version = ">=3.2.0,<4.0.0", extras = ["pandas"], optional = true, markers = "extra == \"pandas\""}, + {version = ">=3.0.4,<4.0.0"}, + {version = ">=3.0.4,<4.0.0", extras = ["pandas"], optional = true, markers = "extra == \"pandas\""}, ] wheel = "*" [package.extras] -development = ["cachetools", "coverage", "pytest", "pytest-cov", "pytest-timeout", "sphinx (==5.0.2)"] -pandas = ["snowflake-connector-python[pandas] (>=3.2.0,<4.0.0)"] -secure-local-storage = ["snowflake-connector-python[secure-local-storage] (>=3.2.0,<4.0.0)"] +development = ["cachetools", "coverage", "pytest", "pytest-cov", "sphinx (==5.0.2)"] +pandas = ["snowflake-connector-python[pandas] (>=3.0.4,<4.0.0)"] +secure-local-storage = ["snowflake-connector-python[secure-local-storage] (>=3.0.4,<4.0.0)"] [[package]] name = "sortedcontainers" @@ -3372,4 +3372,4 @@ multidict = ">=4.0" [metadata] lock-version = "2.0" python-versions = ">=3.10.0,<3.11.0" -content-hash = "8715e094b9c4dc98dccc3dcff576bb099baff793a18a676fa6784e895b83f94e" +content-hash = "612eb85dd5e05fb3faa05e85b21ee30f560790b7cb2c945e0a32fd48395920e1" diff --git a/pyproject.toml b/pyproject.toml index 011ac25..2d4eff1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -16,7 +16,7 @@ classifiers = [ python = ">=3.10.0,<3.11.0" pydantic = "1.10.9" termcolor = "2.3.0" -"snowflake-snowpark-python" = { version = "1.8.0", extras = ["pandas"] } +"snowflake-snowpark-python" = { version = "1.6.1", extras = ["pandas"] } snowflake-ml-python = "1.0.5" pyyaml = "^6.0.1" toml = "^0.10.2" diff --git a/snowdev/fillers/sproc/fill.toml b/snowdev/fillers/sproc/fill.toml index 74052e7..90f32f8 100644 --- a/snowdev/fillers/sproc/fill.toml +++ b/snowdev/fillers/sproc/fill.toml @@ -5,4 +5,4 @@ role = "" [tool.poetry.dependencies] python = "3.10.0" -snowflake-snowpark-python = "1.5.1" \ No newline at end of file +snowflake-snowpark-python = "1.6.1" \ No newline at end of file diff --git a/snowdev/fillers/udf/fill.toml b/snowdev/fillers/udf/fill.toml index 50130c3..4cef639 100644 --- a/snowdev/fillers/udf/fill.toml +++ b/snowdev/fillers/udf/fill.toml @@ -5,5 +5,5 @@ role = "" [tool.poetry.dependencies] python = "3.10.0" -snowflake-snowpark-python = "1.5.1" +snowflake-snowpark-python = "1.6.1" pandas = "2.0.3" \ No newline at end of file diff --git a/src/sproc/test_new_/app.py b/src/sproc/test_new_/app.py index eae9c93..9432bfd 100644 --- a/src/sproc/test_new_/app.py +++ b/src/sproc/test_new_/app.py @@ -1,6 +1,6 @@ from snowflake.snowpark import Session -def handler(session: Session, args) -> str: +def handler(session: Session) -> str: customer_data = session.sql("SELECT * FROM customer_table LIMIT 1") return customer_data.to_pandas() @@ -10,4 +10,4 @@ def handler(session: Session, args) -> str: from snowdev import SnowflakeConnection session = SnowflakeConnection().get_session() - print(handler(session,"test")) \ No newline at end of file + print(handler(session)) \ No newline at end of file diff --git a/src/sproc/test_new_/app.toml b/src/sproc/test_new_/app.toml index ef48210..90f32f8 100644 --- a/src/sproc/test_new_/app.toml +++ b/src/sproc/test_new_/app.toml @@ -5,5 +5,4 @@ role = "" [tool.poetry.dependencies] python = "3.10.0" -snowflake-snowpark-python = "1.5.1" -pandas = "2.0.3" +snowflake-snowpark-python = "1.6.1" \ No newline at end of file diff --git a/src/udf/test_new_/app.toml b/src/udf/test_new_/app.toml index 4bb57a7..f6867bb 100644 --- a/src/udf/test_new_/app.toml +++ b/src/udf/test_new_/app.toml @@ -5,5 +5,5 @@ role = "" [tool.poetry.dependencies] python = "3.10.0" -snowflake-snowpark-python = "1.8.0" +snowflake-snowpark-python = "1.6.1" pandas = "2.0.3"