-
Notifications
You must be signed in to change notification settings - Fork 132
Add SnowflakeFile mocked stage and snowurl support #3479
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
sfc-gh-lju
merged 54 commits into
main
from
lju-SNOW-2110578-SnowflakeFile-mocked-stage-support
Jul 9, 2025
Merged
Changes from all commits
Commits
Show all changes
54 commits
Select commit
Hold shift + click to select a range
e167c98
implement snowflakeFile methods for local testing with a local path
sfc-gh-lju 6968715
update changelog
sfc-gh-lju d3883fd
move udf tests to test_udf_files
sfc-gh-lju 4187b96
Merge branch 'main' into lju-SNOW-2110572-SnowflakeFile-local-path
sfc-gh-lju 21ea2a3
use helper functions
sfc-gh-lju 95d8843
update error message
sfc-gh-lju ce62272
fix gw error by removing generate_random_alphanumeric from parameter
sfc-gh-lju 09746fb
use Union typing for python 3.9 compatability
sfc-gh-lju e73c5b8
use Union typing for python 3.9 compatability
sfc-gh-lju eadb339
use tmp_path instead of our defined fixture
sfc-gh-lju 6f2ff13
fix windows error with relative path
sfc-gh-lju 10be164
use self._pos instead of tell()
sfc-gh-lju 5faf383
use size.nbytes for self._pos
sfc-gh-lju 7199de6
return self._pos
sfc-gh-lju 0b80677
update self._pos in readinto
sfc-gh-lju 7b9cd25
implement mocked stage support
sfc-gh-lju c9ba88f
Merge branch 'main' into lju-SNOW-2110578-SnowflakeFile-mocked-stage-…
sfc-gh-lju 00747b0
Make docstring explaining the functionality of the SFFile Class
sfc-gh-lju e9de88e
add link to github for bug reports
sfc-gh-lju 63cc4f6
use issues tab link
sfc-gh-lju 1cc1ef8
fix rebase errors
sfc-gh-lju 660946e
add changelog
sfc-gh-lju 2ba0ac1
add testing for no session and multiple sessions
sfc-gh-lju 4f977c5
fix session close
sfc-gh-lju 555a6c7
remove session.close, as it's causing bugs with other tests
sfc-gh-lju b459c82
fix bug where no default session is found
sfc-gh-lju d3a0fb4
use session per function
sfc-gh-lju 7f5b478
fix issue of same file being read/written to in different tests
sfc-gh-lju 008f51b
remove random file location
sfc-gh-lju bff2b85
fix return types
sfc-gh-lju 42fd7e6
Merge branch 'main' into lju-SNOW-2110578-SnowflakeFile-mocked-stage-…
sfc-gh-lju 644dc6a
re-add write mode comments for seek and tell
sfc-gh-lju c36af16
remove excessive tests
sfc-gh-lju 9e5d08a
make changelog changes
sfc-gh-lju d8099eb
fix bug with previous stage writes affecting current test
sfc-gh-lju 522977c
enable windows support for tests with escape characters
sfc-gh-lju 520f6fd
fix windows bug with readinto escape chars
sfc-gh-lju ccc5560
append binary string for windows test failures and fix coverage issue
sfc-gh-lju 6fce59b
fix windows failures
sfc-gh-lju 73f8a74
Delete tests/integ/test_udf_files.py
sfc-gh-lju 9a484e1
escape \r in windows testing
sfc-gh-lju 12e5167
fix windows failures for mock tests
sfc-gh-lju 5e10655
fix windows please
sfc-gh-lju f5c8202
fix windows testS
sfc-gh-lju c7cbee3
Update tests/mock/test_udf_files.py
sfc-gh-lju b12f239
add unicode tests and update docs
sfc-gh-lju 46ae930
enable unicode support in tests
sfc-gh-lju 1dae622
fix unicode errors
sfc-gh-lju 303ee0e
revert readlines change
sfc-gh-lju d956c45
fix utf encoding error for local file stream
sfc-gh-lju fd0d48d
re-add tests and use snow URL for changelog
sfc-gh-lju 24cd286
refactor tests
sfc-gh-lju ef6189b
Merge branch 'main' into lju-SNOW-2110578-SnowflakeFile-mocked-stage-…
sfc-gh-lju 7475728
Merge branch 'main' into lju-SNOW-2110578-SnowflakeFile-mocked-stage-…
sfc-gh-lju File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.