lidavidm commented on PR #4544:
URL: https://github.com/apache/arrow-adbc/pull/4544#issuecomment-5279245532

   I think I'm leaning towards having all options/filters be set by SetOption. 
This is perhaps inconvenient for C/C++ users, but language-level bindings can 
present higher level APIs, and allows us to express better type safety. This 
would also be consistent with my suggestion in #4317. 
   
   Either way, the current declaration needs to clarify the lifetime of the 
filter argument anyways (the driver should copy arguments as it is not allowed 
to assume filters will be valid during the returned record reader's lifetime). 
   
   I thought about having a SetOptionStringList. This would be useful if we do 
want to support Iceberg-style catalogs, as we need a way to pass a list of 
namespace parts, and I would rather avoid trying to encode strings into a 
single string (via e.g. JSON). But maybe we can embrace Curt's suggestions and 
lean on Parquet Variant for encoding these sorts of complex-type arguments. 
That said, I fear I'm reinventing COM or some sort of intraprocess RPC 
mechanism...


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to