snowflake-connector-net icon indicating copy to clipboard operation
snowflake-connector-net copied to clipboard

Fixes to PUT implementation

Open lovalvob opened this issue 2 years ago • 8 comments

Fixes multiple bugs with the PUT command. There are 6 small commits in the branch. Each is separate, but builds upon those prior. Reading them from the oldest to newest, it should be pretty clear. If not, please LMK.

I'm trying to use PUT with pre-gzipped files, and process the server response. Without these fixes, it's not possible. Here's the list

From the issue that I created: #469 Put command has several problems:

Put and Get commands should be case insensitive Put and Get commands fail in asynchronous execute with a unclear error (because they are not supported) Put fails to properly determine existing compression, and then fails to properly put the file to the server When a file is 'put', the server response is mapped to incorrect fields in the result. This renders the result unusable.

lovalvob avatar Oct 31 '22 14:10 lovalvob

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

github-actions[bot] avatar Oct 31 '22 14:10 github-actions[bot]

This is a replacement for PR #470. That PR got old, and rather than resolve the issues, I simply started over from the latest master. @sfc-gh-igarish . I'm sorry that I wasn't able to add you as a reviewer. I seem to lack that permission. Alternatively, it could be my lack of experience with github.

lovalvob avatar Oct 31 '22 14:10 lovalvob

I have read the CLA Document and I hereby sign the CLA

lovalvob avatar Oct 31 '22 14:10 lovalvob

recheck

lovalvob avatar Oct 31 '22 14:10 lovalvob

@sfc-gh-igarish, Can you help me work through the automated checks. They appear to be failing on parameters. I suspect that there's a guide somewhere. Can you direct me?

lovalvob avatar Nov 11 '22 12:11 lovalvob

Still PR is a Draft. Can you make it real review? Then I can try to get your PR and see I can tigger the merge gates again.

sfc-gh-igarish avatar Nov 11 '22 18:11 sfc-gh-igarish

recheck

lovalvob avatar Nov 12 '22 14:11 lovalvob

Done, and thanks.

Barry

From: ilesh garish @.> Sent: Friday, November 11, 2022 7:59 PM To: snowflakedb/snowflake-connector-net @.> Cc: Barry Lovalvo @.>; Author @.> Subject: Re: [snowflakedb/snowflake-connector-net] Fixes to PUT implementation (PR #547)

Still PR is a Draft. Can you make it real review? Then I can try to get your PR and see I can tigger the merge gates again.

— Reply to this email directly, view it on GitHubhttps://github.com/snowflakedb/snowflake-connector-net/pull/547#issuecomment-1312074426, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAI4UWKQDOKR2XAJYYM36J3WH2JOJANCNFSM6AAAAAARTENWMI. You are receiving this because you authored the thread.Message ID: @.@.>>

lovalvob avatar Nov 12 '22 16:11 lovalvob

PR is now merged through this PR: https://github.com/snowflakedb/snowflake-connector-net/pull/556

SimbaGithub avatar Nov 23 '22 23:11 SimbaGithub