alamb commented on issue #6289:
URL: 
https://github.com/apache/arrow-datafusion/issues/6289#issuecomment-1541899852

   
   > I am using the register_json multiple times, but depending on the specific 
file i want to put it in the archive or public schema.
   
   Ah, got it. 
   
   
https://docs.rs/datafusion/latest/datafusion/execution/context/struct.SessionContext.html#method.register_json
   
   Yes, I think of you want to use `register_json` we would need to udpate that 
signature to be something like the following
   
   ```
   pub async fn register_json(
       &self,
       name: OwnedTableReference,
       table_path: &str,
       options: NdJsonReadOptions<'_>
   ) -> Result<()>
   ```
   
   To support schema qualification -- right now the string is interpreted as a 
just a table name with no possibility for schema:
   
https://docs.rs/datafusion/latest/src/datafusion/execution/context.rs.html#952
   
   
   A workaround might be to use `CREATE EXTERNAL TABLE` sql to register the 
tables instead, which do support qualified names (with schemas)


-- 
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-unsubscr...@arrow.apache.org

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

Reply via email to