Skip to content

r/adbcsnowflake: Snowflake driver logs at info level causing CMD check fail #2607

Open
@paleolimbot

Description

@paleolimbot

What feature or improvement would you like to see?

In #2576 we see R CMD check failures for the snowflake driver (probably) because of a log message emitted during the examples (and/or possibly the tests):

time="2025-03-11T12:51:47Z" level=info msg="Credentials cache path: /home/runner/.cache/snowflake/temporary_credential.json" func="gosnowflake.(*defaultLogger).Infof" file="log.go:182"

In R you're not supposed to write to stderr directly, you're supposed to write to R's specific stderr stream (so that those messages can be captured by R things), and I am wondering if something in R CMD check is getting some mashup of the log message and what it intended to read by accident. Unfortunately this doesn't reproduce locally for me (maybe because I have no credentials when I run the examples, though).

I am not sure it's easy to redirect log messages from the go logger, nor is there an obvious place to put them in ADBC (I think there's an open issue about warnings/notices). Probably the easiest way to fix the immediate issue would be to up the log level to warning instead of info (if we have control over that)...I could probably also compile the Go driver with a define like ADBC_PRINTF_FUNCTION=REprintf (which is the function we're supposed to use instead of fprintf(stderr, ....

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions