-
Notifications
You must be signed in to change notification settings - Fork 130
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-1964421: Can't PUT local file into internal stage if query starts with newline #1326
Comments
@tzachshabtay thanks for reaching out. That issue you referenced is pretty old and back then the Go driver didn't support the PUT query, but it definitely does now. Here's an example of the log messages I see when running a test issuing a PUT query:
Are you 100% sure you're using v1.13.1? You might want to double check that from the login history to verify the client version being used in your test. Can you share the code you're using? |
@sfc-gh-wfateem thanks for the quick response. I was able to isolate the issue, the error is only returned when the query starts with a new line, once the new line is removed the query works. I updated the title with the new info. To answer your question, yes, I'm pretty sure it's using 1.13.1, saw it in the debug logs from the driver (and in go.mod), not sure what you mean by login history though. Repro code:
|
Thanks @tzachshabtay |
Hi @tzachshabtay (CC @sfc-gh-wfateem ), it seems you found a tiny bug :) Our regex doesn't ignore whitespaces. |
Hi, I'm trying to exec
PUT file:///tmp/mypath.csv @MYSCHEMA.MYSTAGE/mypath;
, I'm getting back the error:I saw this was reported 6 years ago and the answer this will be high priority to fix, but then the issue derailed to another request and closed, so is it possible that support was never added and this was accidentally neglected?
What version of GO driver are you using?
v1.13.1
What operating system and processor architecture are you using?
4.Server version:* E.g. 1.90.1
9.5.1
Thanks.
The text was updated successfully, but these errors were encountered: