-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Get Snowflake + Hamilton UI example ready
Note: this is a toy example. For real production needs, you'd need to modify a few things: 1. not use SQLLITE, and instead postgresql, or implement django-snowflake connection. 2. likely not use the Hamilton code within the flask container, instead package up properly and define a UDF or UDTF. 3. could use snowpark dataframes or have hamilton code do other things, e.g. LLM calls..
- Loading branch information
Showing
6 changed files
with
42 additions
and
140 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,16 @@ | ||
# Running the Hamilton & the Hamilton UI in Snowflake | ||
|
||
This example is code for the ["TODO" post](). | ||
This example is code for the ["Observability of Python code and application logic with Hamilton UI on Snowflake Container Services" post](https://medium.com/@pkantyka/observability-of-python-code-and-application-logic-with-hamilton-ui-on-snowflake-container-services-a26693b46635) by | ||
[Greg Kantyka](https://medium.com/@pkantyka). | ||
|
||
Here we show the code required to be packaged up for | ||
use on Snowflake. | ||
Here we show the code required to be packaged up for use on Snowflake: | ||
|
||
TODO: | ||
- cut & paste instructions from blog post? | ||
1. Docker file that runs the Hamilton UI and a flask endpoint to exercise Hamilton code | ||
2. my_functions.py - the Hamilton code that is exercised by the flask endpoint | ||
3. pipeline_endpoint.py - the flask endpoint that exercises the Hamilton code | ||
|
||
To run see: | ||
- snowflake.sql that contains all the SQL to create the necessary objects in Snowflake and exercise things. | ||
|
||
For more details see ["Observability of Python code and application logic with Hamilton UI on Snowflake Container Services" post](https://medium.com/@pkantyka/observability-of-python-code-and-application-logic-with-hamilton-ui-on-snowflake-container-services-a26693b46635) by | ||
[Greg Kantyka](https://medium.com/@pkantyka). |
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 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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
flask | ||
sf-hamilton[ui,sdk] |
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