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
I'm trying to pivot a table in SQL server and my code was working fine under R 4.0.3. I upgraded to R 4.2.1 and now having a problem where SQL throws an error at the SQL code generated.
It appears to be that previously the lines that are currently shown as MAX(IIF("carb" = 1.0, "gear", )) AS "1", had NULL after gear and before the closing parenthesis. I guess SQL server doesn't like it blank and needs to have the NULL there.
below is an example of connecting to our SQL server and doing the pivot using mtcars as an example as well as my sessionInfo.
Let me know if there's anything else I can provide.
rowrowrowyourboat
changed the title
pivot_wider no not transforming to sql correctly after upgrading R 4.0.3 -> 4.2.1
pivot_wider now not transforming to sql correctly after upgrading R 4.0.3 -> 4.2.1
Jul 14, 2022
I'm trying to pivot a table in SQL server and my code was working fine under R 4.0.3. I upgraded to R 4.2.1 and now having a problem where SQL throws an error at the SQL code generated.
It appears to be that previously the lines that are currently shown as
MAX(IIF("carb" = 1.0, "gear", )) AS "1",
hadNULL
after gear and before the closing parenthesis. I guess SQL server doesn't like it blank and needs to have the NULL there.below is an example of connecting to our SQL server and doing the pivot using mtcars as an example as well as my sessionInfo.
Let me know if there's anything else I can provide.
Created on 2022-07-01 by the reprex package (v2.0.1)
The text was updated successfully, but these errors were encountered: