You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CREATE OR REPLACE FUNCTION {{ target.schema }}.some_udf_name(
time_from timestamp_tz,
time_to timestamp_tz,
udids array
)
RETURNS TABLE(
udid varchar,
time timestamp_tz,
value float
)
AS $$
SELECT
udid,
time,
value
FROM some_table
$$;
The result is that the query returns without an error, but no CSV files are written to the S3 stage.
On 1.10.1, this works as expected.
On 1.11.0, this code results in a panic at github.com/snowflakedb/[email protected]/converter.go:276
On 1.11.1, this code silently fails.
One workaround is to use a []string instead of a []uuid.UUID, but this shouldn't be necessary -- Google's uuid.UUID type has a Value() method and a String() method. Other database drivers, like postgresql, handle this scenario just fine.
What did you expect to see?
Files show up in the S3 stage.
Can you set logging to DEBUG and collect the logs?
(I can get logs if needed, but it should be easy to repro, and I've already spent about three hours root-causing this bug)
The text was updated successfully, but these errors were encountered:
github-actionsbot
changed the title
Regression in binding of some parameter types in 1.11.0/1.11.1 (silent failure when binding []uuid.UUID)
SNOW-1960433: Regression in binding of some parameter types in 1.11.0/1.11.1 (silent failure when binding []uuid.UUID)
Mar 4, 2025
Please answer these questions before submitting your issue.
In order to accurately debug the issue this information is required. Thanks!
What version of GO driver are you using?
1.12.1
What operating system and processor architecture are you using?
Linux/amd64
What version of GO are you using?
1.23.5
4.Server version:* E.g. 1.90.1
9.4.3
I'm running a query that copies its results into an S3 stage. The query looks like this:
where db is an instance of sqlx.DB.
Some_udf_name is defined like this:
The result is that the query returns without an error, but no CSV files are written to the S3 stage.
On 1.10.1, this works as expected.
On 1.11.0, this code results in a panic at github.com/snowflakedb/[email protected]/converter.go:276
On 1.11.1, this code silently fails.
One workaround is to use a []string instead of a []uuid.UUID, but this shouldn't be necessary -- Google's uuid.UUID type has a Value() method and a String() method. Other database drivers, like postgresql, handle this scenario just fine.
What did you expect to see?
Files show up in the S3 stage.
Can you set logging to DEBUG and collect the logs?
(I can get logs if needed, but it should be easy to repro, and I've already spent about three hours root-causing this bug)
The text was updated successfully, but these errors were encountered: