You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "lidavidm (via GitHub)" <gi...@apache.org> on 2023/06/15 17:15:35 UTC

[GitHub] [arrow-adbc] lidavidm commented on issue #621: format: expose other metadata in GetObjects or add new metadata function

lidavidm commented on issue #621:
URL: https://github.com/apache/arrow-adbc/issues/621#issuecomment-1593451034

   Currently we have a getObjects function that returns a single, nested data structure describing all info. This is sort of convenient in some ways (effectively, it's dictionary/run-length encoding common fields, and some systems can generate the nested structure directly) but inconvenient in others. It means we can't easily extend the hierarchy (changing the schema = potential breakage), we can't redefine what "depth=ALL" means easily[^1], and it's very annoying to build up if your database doesn't directly support building that nested structure.
   
   Also, getObjects doesn't actually expose all the metadata you might expect. Even if you look at just methods returning `ResultSet` in JDBC's [DataBaseMetaData](https://docs.oracle.com/javase/8/docs/api/java/sql/DatabaseMetaData.html), there's quite a bit of info that we don't expose.
   
   We should figure out what is common between JDBC and ODBC (probably, everything); see if there's any other common info (in PostgreSQL, SQL Server?), and define separate methods (auxiliary to GetObjects) for each of those.
   
   For consistency with GetObjects we may still nest things?
   
   [^1]: technically it's just an alias...but for source compatibility it would still be best to not change it. 


-- 
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: github-unsubscribe@arrow.apache.org

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