You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "shencangsheng (via GitHub)" <gi...@apache.org> on 2025/04/30 06:23:17 UTC
[I] Register schema table, failed to resolve schema [datafusion]
shencangsheng opened a new issue, #15897:
URL: https://github.com/apache/datafusion/issues/15897
### Describe the bug
I registered a table named report.user using ctx.register_csv, but encountered a "failed to resolve schema: report" error in ctx.sql.
```rust
pub async fn register(table_ref: &String, table_path: &String, ctx: &SessionContext, options: CsvReadOptions<'_>) {
println!("{}: {}", table_ref, table_path);
ctx.register_csv(table_ref, table_path, options).await.expect("TODO: panic message");
}
pub async fn execute(ctx: SessionContext, sql: &String) -> Vec<RecordBatch> {
let df = ctx.sql(sql).await;
df.unwrap().collect().await.unwrap()
}
```

```sql
select t1.* from order as t1 inner join report.user as t2 on (t1.id = t2.id) where t1.id > 2
```
### To Reproduce
_No response_
### Expected behavior
_No response_
### Additional context
_No response_
--
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@datafusion.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [I] Register schema table, failed to resolve schema [datafusion]
Posted by "shencangsheng (via GitHub)" <gi...@apache.org>.
shencangsheng closed issue #15897: Register schema table, failed to resolve schema
URL: https://github.com/apache/datafusion/issues/15897
--
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@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org