paleolimbot opened a new issue, #2607:
URL: https://github.com/apache/arrow-adbc/issues/2607

   ### What feature or improvement would you like to see?
   
   In 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, ...`.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to