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

s3_storage_client.go: cannot use out.ContentLength (variable of type *int64) as int64 value in struct literal #973

Closed
dshyryayev-ci opened this issue Nov 21, 2023 · 1 comment
Assignees
Labels
bug Erroneous or unexpected behaviour duplicate

Comments

@dshyryayev-ci
Copy link

Please have a look at this error:
vendor/github.com/snowflakedb/gosnowflake/s3_storage_client.go:105:3: cannot use out.ContentLength (variable of type *int64) as int64 value in struct literal

Please answer these questions before submitting your issue.
In order to accurately debug the issue this information is required. Thanks!

  1. What version of GO driver are you using?
    v.1.7.0

  2. What operating system and processor architecture are you using?
    MacOS: Sonoma 14.0

  3. What version of GO are you using?
    run go version in your console
    go1.20.3

4.Server version:* E.g. 1.90.1
You may get the server version by running a query:

SELECT CURRENT_VERSION();
  1. What did you do?

I was trying to setup a mock for database driver: we use snowflake and postresql.
So, my code has a reference:
Client *sqlx.DB
Where sqlx is module: "github.com/jmoiron/sqlx"
I have built a mock for the database struct
type DBMockConnection struct {
Mock sqlmock.Sqlmock
DB *sql.DB
DriverName string
logger logging.Logger
}
This is fully compatible with "github.com/lib/pq", but with "github.com/snowflakedb/gosnowflake", I can't compile my code:
I see this error:
vendor/github.com/snowflakedb/gosnowflake/s3_storage_client.go:105:3: cannot use out.ContentLength (variable of type *int64) as int64 value in struct literal

  1. What did you expect to see?
    I am not expecting to see any error, seems like a very minor bug

    What should have happened and what happened instead?

  2. Can you set logging to DEBUG and collect the logs?

    https://community.snowflake.com/s/article/How-to-generate-log-file-on-Snowflake-connectors

  3. What is your Snowflake account identifier, if any? (Optional)

@dshyryayev-ci dshyryayev-ci added the bug Erroneous or unexpected behaviour label Nov 21, 2023
@sfc-gh-dszmolka sfc-gh-dszmolka self-assigned this Nov 22, 2023
@sfc-gh-dszmolka
Copy link
Contributor

seems to be duplicate of #970

@sfc-gh-dszmolka sfc-gh-dszmolka closed this as not planned Won't fix, can't repro, duplicate, stale Nov 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Erroneous or unexpected behaviour duplicate
Projects
None yet
Development

No branches or pull requests

2 participants