Skip to content
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

SNOW-1636439: "No files matched pattern" error when directory contains names in upper case. #1468

Closed
sfc-gh-jvasquezrojas opened this issue Aug 22, 2024 · 1 comment · Fixed by #1494
Labels
bug Something isn't working stage/git

Comments

@sfc-gh-jvasquezrojas
Copy link
Collaborator

sfc-gh-jvasquezrojas commented Aug 22, 2024

SnowCLI version

2.6.1

Python version

Python 3.11.5

Platform

macOS-14.5-arm64-arm-64bit

What happened

No files matched pattern, even though the file exists

This lower function caused the error:
image

Console output

(snowflake-cli-labs) (base) jvasquezrojas@V9P2792XJ5 snowflake-cli % snow git list-files "@jvasquez_repository/branches/dev/CICD/DB1/example.sql" -c integration                                            
+------------------------------------------------------------------------------------------------------------------------------------------------+
| name                                                  | size | md5  | sha1                                     | last_modified                 |
|-------------------------------------------------------+------+------+------------------------------------------+-------------------------------|
| jvasquez_repository/branches/dev/CICD/DB1/example.sql | 24   | None | 5114d9d042eaf0f2102539304a8d1903fc73648f | Thu, 22 Aug 2024 04:18:41 GMT |
+------------------------------------------------------------------------------------------------------------------------------------------------+

(snowflake-cli-labs) (base) jvasquezrojas@V9P2792XJ5 snowflake-cli % snow git execute "@jvasquez_repository/branches/dev/CICD/DB1/example.sql" -c integration
╭─ Error ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ No files matched pattern '@jvasquez_repository/branches/dev/CICD/DB1/example.sql'                                                                │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

How to reproduce

Create a repository in Snowflake with GitHub, add a file in upper case with sql file to the repo. Then run
snow execute @<repo_name>/branches/main/<FILE_IN_UPPERCASE>/file.sql it should fail because the path contains a file in upper case.

@github-actions github-actions bot changed the title "No files matched pattern" error when directory contains names in upper case. SNOW-1636439: "No files matched pattern" error when directory contains names in upper case. Aug 22, 2024
@sfc-gh-jvasquezrojas
Copy link
Collaborator Author

Related issue Snowflake-Labs/snowflake-cli-action#20

@sfc-gh-turbaszek sfc-gh-turbaszek added bug Something isn't working stage/git labels Aug 26, 2024
@sfc-gh-turbaszek sfc-gh-turbaszek linked a pull request Aug 27, 2024 that will close this issue
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stage/git
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants