Skip to content

Commit

Permalink
deploy udf
Browse files Browse the repository at this point in the history
  • Loading branch information
kaarthik108 committed Sep 24, 2023
1 parent bda5ea8 commit 1737889
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/snowflake_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,12 @@ jobs:
run: |
cd src
IFS=$'\n'
# Initialize a variable to track if any deployment fails
error_occurred=false
for dir in $(find src -mindepth 2 -type d); do
for dir in $(find . -mindepth 2 -type d); do # Changed this line
# Extract the path relative to src
rel_path="${dir#src/}"
component_type=$(echo $rel_path | cut -d'/' -f1)
component_name=$(echo $rel_path | cut -d'/' -f2)
rel_path="${dir#.}" # Changed this line
component_type=$(echo $rel_path | cut -d'/' -f2) # Adjusted field number
component_name=$(echo $rel_path | cut -d'/' -f3) # Adjusted field number
echo "Component Type: $component_type"
echo "Component Name: $component_name"
case $component_type in
Expand Down
2 changes: 1 addition & 1 deletion src/udf/wow/app.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ role = ""

[tool.poetry.dependencies]
python = "3.10.0"
snowflake-snowpark-python = "1.6.1"
snowflake-snowpark-python = "1.6.1"

0 comments on commit 1737889

Please sign in to comment.