STAGE FILE
Stage files are used primarily to maintain packages (e.g. JAR files) for Snowpark functions.
You may put any directories or files in /<database>/<schema>/stage/<stage_name>/*
SnowDDL will synchronise files with internal stage automatically.
Example: GitHub link (test_internal_stage
).
Usage notes
Pre-compiled JAR files for popular libraries can be downloaded directly from MVN repository.
Directory structure is maintained.
It is recommended to have multiple small files VS. one large file. Each file is uploaded individually in a separate thread.
For each stage file SnowDDL puts an additional empty technical file. It is used to compare local version of file on disk with remote version of file in stage. Technical file is named
<original_name>.<md5_hash>.md5
. Unfortunately, it is not possible to usemd5
provided by SnowflakeLIST
command, since files in internal stages seems to be encrypted or modified in some other way.
Links
Last updated