-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Field Metadata Lost on COUNT DISTINCT
queries resulting in Internal Error: Physical input schema should be the same as the one converted from logical input schema
#12687
Comments
Here is my suggestion of how to try and reproduce the issue we see:
|
I am happy to help with the queries if someone can help set up the infrastructure |
take |
Labeling this as a regression as it used to work and now does nt |
I think this specific issue is fixed, but after #12691, I'm now seeing issues with added field metadata (as opposed to missing field metadata) at the same comparison point. I'll open another issue for it. |
COUNT DISTINCT
queries resulting in Internal Error: Physical input schema should be the same as the one converted from logical input schema
We plan to include a fix for this issue in 42.1.0 #12813 |
Describe the bug
During upgrade of DataFusion in InfluxDB @itsjunetime found that somewhere Field level metadata (aka
Field::with_metadata
is being lost during DataFusion logical planningThis manifests itself as an error during the physical planning
@itsjunetime found a workaround in #12631 (which is to ignore the Field metadata). This ticket tracks fixing it for real.
To Reproduce
(we are working on a reproducer)
Expected behavior
No error during physical planning
Additional context
Copying @itsjunetime's description here: #12560 (comment)
I'm running into this behavior after #11989, specifically seeing schema mismatches where the only thing that is different is that a field's metadata disappears at some point (so the schemas are the same except for a field's metadata). E.g.:
I've yet to figure out exactly where the metadata is being dropped and I haven't figured out a reproducer either. I suggested comparing only the fields' non-metadata fields here, but @jayzhan211 pointed out that that's more of a workaround than an actual fix, as it's still a problem if the metadata is disappearing.
The issue that I'm running into, though, seems to be somewhat different than the issue that others (like @phillipleblanc) are running into, where some fields completely disappear from the schema (see here). I don't think these are the same issue, exactly (since they manifest differently), but they may have the same root cause/solution, so I think it's fair to keep them all under this issue unless needed otherwise.
I'll work on getting a fix or reproducer today
The text was updated successfully, but these errors were encountered: