-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* progress on table function changes * reorganize functions * save progress * upgrade version and notes in change log
- Loading branch information
Showing
19 changed files
with
618 additions
and
411 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Snowpark Extensions Extras | ||
|
||
These "extras" are experimental extensions. These extensions are meant to test some snowpark capabilities. | ||
We put them as experimental, as they might require some additional testing or apply only in some scenarios. | ||
|
||
|
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,15 @@ | ||
# Notebook Runner | ||
|
||
The notebook runner is a small example that allows you to run a notebook from within snowflake. | ||
|
||
The runner script will: | ||
1. connect to snowflake | ||
2. upload the notebook, | ||
3. publish a storeproc, | ||
4. run the store procedure, | ||
5. save the results of the notebook and | ||
6. then download the results as an html | ||
|
||
This script call also be used to publish a permanent stored proc that can then be used to run any notebook that is already on an stage, | ||
or to schedule a task to run a notebook. | ||
|
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,54 @@ | ||
{ | ||
"cells": [ | ||
{ | ||
"cell_type": "code", | ||
"execution_count": 3, | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"from snowflake.snowpark import Session\n", | ||
"import snowpark_extensions\n", | ||
"# will try to setup credential from the snowsql CLI if present of from SNOW_xxx or SNOWSQL_xxx variables\n", | ||
"# if not configuration can be retrieve you will receive an error\n", | ||
"session = Session.builder.from_snowsql().from_env().getOrCreate()" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"df = session.createDataFrame([('oneAtwoBthreeC',)], ['s',])\n", | ||
"df.show()" | ||
] | ||
} | ||
], | ||
"metadata": { | ||
"kernelspec": { | ||
"display_name": "Python 3", | ||
"language": "python", | ||
"name": "python3" | ||
}, | ||
"language_info": { | ||
"codemirror_mode": { | ||
"name": "ipython", | ||
"version": 3 | ||
}, | ||
"file_extension": ".py", | ||
"mimetype": "text/x-python", | ||
"name": "python", | ||
"nbconvert_exporter": "python", | ||
"pygments_lexer": "ipython3", | ||
"version": "3.8.16 (default, Jan 10 2023, 15:23:34) \n[GCC 9.4.0]" | ||
}, | ||
"orig_nbformat": 4, | ||
"vscode": { | ||
"interpreter": { | ||
"hash": "9ac03a0a6051494cc606d484d27d20fce22fb7b4d169f583271e11d5ba46a56e" | ||
} | ||
} | ||
}, | ||
"nbformat": 4, | ||
"nbformat_minor": 2 | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
snowflake-snowpark-python[pandas] | ||
pandas | ||
shortuuid | ||
rich | ||
nest_asyncio | ||
jinja2 | ||
|
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
this_directory = Path(__file__).parent | ||
long_description = (this_directory / "README.md").read_text() | ||
|
||
VERSION = '0.0.25' | ||
VERSION = '0.0.26' | ||
|
||
setup(name='snowpark_extensions', | ||
version=VERSION, | ||
|
@@ -14,12 +14,8 @@ | |
long_description_content_type='text/markdown', | ||
url='http://github.com/MobilizeNet/snowpark-extensions-py', | ||
author='mauricio.rojas', | ||
install_requires=['snowflake-snowpark-python[pandas]>=1.1.0', | ||
'shortuuid', 'nest_asyncio', 'jinja2', 'rich'], | ||
install_requires=['snowflake-snowpark-python[pandas]==1.1.0', | ||
'nest_asyncio', 'jinja2', 'rich'], | ||
author_email='[email protected]', | ||
packages=['snowpark_extensions'], | ||
scripts=[ | ||
'runner', | ||
'runner.bat' | ||
], | ||
zip_safe=False) |
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
Oops, something went wrong.