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'd rather back up to the default dispatch where possible, so instead of writing out a full custom R type->backend type mapping, I've just added one method for logical():
So I had to wind up just copy-pasting that as a new c("MyDBIConnection", "AsIs") method.
But shouldn't that be the default behavior so I don't need to copy over boilerplate? That would just mean adding a specific c("DBIConnection", "AsIs") method, right?
(happy to file a PR, but checking my understanding first)
The text was updated successfully, but these errors were encountered:
Thanks. There is a nasty message that can't be turned off when more than one S4 method matches. Copying the boilerplate is the easiest way to shut off that message.
I'm not sure if this applies here, so worth a check.
I have a custom backend where we need a custom method for
dbDataType()
forlogical()
("BOOL"
instead of"SMALLINT"
).https://cloud.google.com/bigquery/docs/reference/standard-sql/data-types
I'd rather back up to the default dispatch where possible, so instead of writing out a full custom
R type
->backend type
mapping, I've just added one method forlogical()
:However, that fails the {DBItest} suite:
My S4 knowledge is pretty weak, but IIUC the issue is that
AsIs
does not dispatch to the correct method:DBI/R/dbiDataType_AsIs.R
Lines 1 to 6 in 9d28b2a
So I had to wind up just copy-pasting that as a new
c("MyDBIConnection", "AsIs")
method.But shouldn't that be the default behavior so I don't need to copy over boilerplate? That would just mean adding a specific
c("DBIConnection", "AsIs")
method, right?(happy to file a PR, but checking my understanding first)
The text was updated successfully, but these errors were encountered: