Open MidasLamb opened 1 year ago
I'm digging what deeper and it seems to be caused by the capitalization inside of "linkedTwintag", as putting some dbg!
statements everywhere, I see that at some point it compares
Some(
Bare {
table: "linkedTwintag",
},
),
Some(
Bare {
table: "linkedtwintag",
},
),
which results in it not being a match
I saw something similar the other day: https://github.com/apache/arrow-datafusion/issues/6790
i wonder if it is possible to create a datafusion only reproducer (with the datafusion-cli
for example)
Describe the bug
I'm doing a query with aliases, and when trying to execute it, it gives back a
SchemaError
sayingFieldNotFound
, however that error also contains a list of valid fields, and the field it's saying isn't found, is listed in there. The error (formatted):As you can see, the field that is not found is the last one in the
valid_fields
list.To Reproduce
Create two mysql tables, and use the following crate to pull them in: https://github.com/splitgraph/seafowl/tree/main/datafusion_remote_tables.
Execute the following (or similar query):
Expected behavior
I get back a normal resultbatch.
Additional context
I've not used datafusion a lot, so I'm not 100% sure whether its a bug in the crate for pulling in mysql tables, or if its a bug in datafusion itself.