Skip to content

Commit

Permalink
fix: get example query in the documentation has the parameters swapped (
Browse files Browse the repository at this point in the history
#711)

Co-authored-by: Piotr Fus <[email protected]>
  • Loading branch information
yeforriak and sfc-gh-pfus authored Jan 11, 2024
1 parent 7328b30 commit 72af178
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -958,12 +958,12 @@ Note: PUT statements are not supported for multi-statement queries.
The following example shows how to run a GET command by passing a string to the
db.Query() function:
db.Query("GET file://<local_file> <stage_identifier> <optional_parameters>")
db.Query("GET <internal_stage_identifier> file://<local_file> <optional_parameters>")

Check failure on line 962 in doc.go

View workflow job for this annotation

GitHub Actions / GCP Go 1.19 on Windows

package comment is detached; there should be no blank lines between it and the package statement

Check failure on line 962 in doc.go

View workflow job for this annotation

GitHub Actions / GCP Go 1.20 on Windows

package comment is detached; there should be no blank lines between it and the package statement

Check failure on line 962 in doc.go

View workflow job for this annotation

GitHub Actions / GCP Go 1.21 on Windows

package comment is detached; there should be no blank lines between it and the package statement

Check failure on line 962 in doc.go

View workflow job for this annotation

GitHub Actions / AWS Go 1.19 on Windows

package comment is detached; there should be no blank lines between it and the package statement

Check failure on line 962 in doc.go

View workflow job for this annotation

GitHub Actions / AZURE Go 1.19 on Windows

package comment is detached; there should be no blank lines between it and the package statement

Check failure on line 962 in doc.go

View workflow job for this annotation

GitHub Actions / AZURE Go 1.21 on Windows

package comment is detached; there should be no blank lines between it and the package statement

Check failure on line 962 in doc.go

View workflow job for this annotation

GitHub Actions / AWS Go 1.21 on Windows

package comment is detached; there should be no blank lines between it and the package statement

Check failure on line 962 in doc.go

View workflow job for this annotation

GitHub Actions / AWS Go 1.20 on Windows

package comment is detached; there should be no blank lines between it and the package statement

Check failure on line 962 in doc.go

View workflow job for this annotation

GitHub Actions / AZURE Go 1.20 on Windows

package comment is detached; there should be no blank lines between it and the package statement

Check failure on line 962 in doc.go

View workflow job for this annotation

GitHub Actions / GCP Go 1.19 on Windows

package comment is detached; there should be no blank lines between it and the package statement

Check failure on line 962 in doc.go

View workflow job for this annotation

GitHub Actions / AWS Go 1.20 on Windows

package comment is detached; there should be no blank lines between it and the package statement

Check failure on line 962 in doc.go

View workflow job for this annotation

GitHub Actions / GCP Go 1.21 on Windows

package comment is detached; there should be no blank lines between it and the package statement

Check failure on line 962 in doc.go

View workflow job for this annotation

GitHub Actions / GCP Go 1.20 on Windows

package comment is detached; there should be no blank lines between it and the package statement

Check failure on line 962 in doc.go

View workflow job for this annotation

GitHub Actions / AWS Go 1.19 on Windows

package comment is detached; there should be no blank lines between it and the package statement

Check failure on line 962 in doc.go

View workflow job for this annotation

GitHub Actions / AWS Go 1.21 on Windows

package comment is detached; there should be no blank lines between it and the package statement

Check failure on line 962 in doc.go

View workflow job for this annotation

GitHub Actions / AZURE Go 1.20 on Windows

package comment is detached; there should be no blank lines between it and the package statement

Check failure on line 962 in doc.go

View workflow job for this annotation

GitHub Actions / AZURE Go 1.19 on Windows

package comment is detached; there should be no blank lines between it and the package statement

Check failure on line 962 in doc.go

View workflow job for this annotation

GitHub Actions / AZURE Go 1.21 on Windows

package comment is detached; there should be no blank lines between it and the package statement

Check failure on line 962 in doc.go

View workflow job for this annotation

GitHub Actions / GCP Go 1.20 on Windows

package comment is detached; there should be no blank lines between it and the package statement

Check failure on line 962 in doc.go

View workflow job for this annotation

GitHub Actions / AZURE Go 1.20 on Windows

package comment is detached; there should be no blank lines between it and the package statement

Check failure on line 962 in doc.go

View workflow job for this annotation

GitHub Actions / GCP Go 1.21 on Windows

package comment is detached; there should be no blank lines between it and the package statement

Check failure on line 962 in doc.go

View workflow job for this annotation

GitHub Actions / AZURE Go 1.19 on Windows

package comment is detached; there should be no blank lines between it and the package statement

Check failure on line 962 in doc.go

View workflow job for this annotation

GitHub Actions / GCP Go 1.19 on Windows

package comment is detached; there should be no blank lines between it and the package statement

Check failure on line 962 in doc.go

View workflow job for this annotation

GitHub Actions / AZURE Go 1.21 on Windows

package comment is detached; there should be no blank lines between it and the package statement

Check failure on line 962 in doc.go

View workflow job for this annotation

GitHub Actions / AWS Go 1.19 on Windows

package comment is detached; there should be no blank lines between it and the package statement

Check failure on line 962 in doc.go

View workflow job for this annotation

GitHub Actions / AWS Go 1.20 on Windows

package comment is detached; there should be no blank lines between it and the package statement

Check failure on line 962 in doc.go

View workflow job for this annotation

GitHub Actions / AWS Go 1.21 on Windows

package comment is detached; there should be no blank lines between it and the package statement

Check failure on line 962 in doc.go

View workflow job for this annotation

GitHub Actions / AZURE Go 1.19 on Windows

package comment is detached; there should be no blank lines between it and the package statement

Check failure on line 962 in doc.go

View workflow job for this annotation

GitHub Actions / GCP Go 1.20 on Windows

package comment is detached; there should be no blank lines between it and the package statement

Check failure on line 962 in doc.go

View workflow job for this annotation

GitHub Actions / GCP Go 1.19 on Windows

package comment is detached; there should be no blank lines between it and the package statement

Check failure on line 962 in doc.go

View workflow job for this annotation

GitHub Actions / AZURE Go 1.20 on Windows

package comment is detached; there should be no blank lines between it and the package statement

Check failure on line 962 in doc.go

View workflow job for this annotation

GitHub Actions / GCP Go 1.21 on Windows

package comment is detached; there should be no blank lines between it and the package statement

Check failure on line 962 in doc.go

View workflow job for this annotation

GitHub Actions / AWS Go 1.19 on Windows

package comment is detached; there should be no blank lines between it and the package statement

Check failure on line 962 in doc.go

View workflow job for this annotation

GitHub Actions / AWS Go 1.20 on Windows

package comment is detached; there should be no blank lines between it and the package statement

Check failure on line 962 in doc.go

View workflow job for this annotation

GitHub Actions / AWS Go 1.21 on Windows

package comment is detached; there should be no blank lines between it and the package statement

Check failure on line 962 in doc.go

View workflow job for this annotation

GitHub Actions / AZURE Go 1.21 on Windows

package comment is detached; there should be no blank lines between it and the package statement
"<local_file>" should include the file path as well as the name. Snowflake recommends using
an absolute path rather than a relative path. For example:
db.Query("GET file:///tmp/my_data_file @~ auto_compress=false overwrite=false")
db.Query("GET @~ file:///tmp/my_data_file auto_compress=false overwrite=false")
## Specifying temporary directory for encryption and compression
Expand Down

0 comments on commit 72af178

Please sign in to comment.