diff --git a/examples/snowflake/hamilton_ui/pipeline_endpoint.py b/examples/snowflake/hamilton_ui/pipeline_endpoint.py index 7a787c8d2..217077f0b 100644 --- a/examples/snowflake/hamilton_ui/pipeline_endpoint.py +++ b/examples/snowflake/hamilton_ui/pipeline_endpoint.py @@ -86,8 +86,8 @@ def get_response(prj_id, spend, signups, output_columns): tags={"environment": "R&D", "team": "MY_TEAM", "version": "Beta"}, ) input_columns = { - "signups": pd.Series(spend), - "spend": pd.Series(signups), + "signups": pd.Series(signups), + "spend": pd.Series(spend), } dr = ( driver.Builder() diff --git a/examples/snowflake/hamilton_ui/snowflake.sql b/examples/snowflake/hamilton_ui/snowflake.sql index 7cad26748..ba1afc159 100644 --- a/examples/snowflake/hamilton_ui/snowflake.sql +++ b/examples/snowflake/hamilton_ui/snowflake.sql @@ -1,6 +1,15 @@ -- For more details visit: -- https://medium.com/@pkantyka/observability-of-python-code-and-application-logic-with-hamilton-ui-on-snowflake-container-services-a26693b46635 +CREATE OR REPLACE IMAGE REPOSITORY images; +-- then docker build -t /snowflake-hamilton-ui . +-- docker login -u +-- docker push /snowflake-hamilton-ui +SHOW IMAGES IN IMAGE REPOSITORY ; + +CREATE STAGE hamilton_base ENCRYPTION = (type = 'SNOWFLAKE_SSE'); + + CREATE SERVICE public.hamilton_ui IN COMPUTE POOL TEST_POOL FROM SPECIFICATION $$ @@ -21,7 +30,7 @@ spec: - name: hamilton-basedir source: "@..hamilton_base" $$ -QUERY_WAREHOUSE = +QUERY_WAREHOUSE = ; CALL SYSTEM$GET_SERVICE_STATUS('..hamilton_ui');