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
Impossible to bin a field (with numeric type) in histogramm #12337
Comments
This sounds like the fields for some reason don't have a fingerprint (what we call some precomputed statistics like min & max) on them. If you check your logs do you have any errors during the sync process? You might also want to try manually re-triggering sync from the Admin panel. |
Thanks for your help @sbelak . |
Logs MB.docx |
I don't know which database or table, you're showing in the screenshot, but the log shows an error:
|
Yes my problem is on database 111, table 2733. But when I check metabase_field I found a lot of other field without any fingerprint on this database. Is there any action I can run to force MB to build these "fingerprints" ? I have no idea of the root cause, I don't see any pattern on the different number field without fingerprint : some are recently created but others not, some are float but others integer... |
Hello again,
Is there something I can do to try to solve this fail ? Or a way to "drill down" in this task and identify if it always fail on a specific table/field ? Thanks |
Try launching Metabase with more logging. This enables
|
Hello, we use AWS Elastic Beanstalk, so how to apply this configuration to use this please ? |
@skyline42sh You would have to change the configuration and upload that. Have a look at this forum comment (might want to read the entire topic): |
@flamber I work with Nico-P-FR that's why I post this question... |
@flamber The post in comment doesn't correspond to our case, how to add on the 01_metabase.config the command java -Dlog4j please ? |
@skyline42sh |
Okey, I found the solution. |
@flamber With advanced logs I guess I have identified the problem root. It seems to fail and stop fingerprint scan due to some fields name with specific characters like question mark "?".
I'm tryin to substitute them all to check if it's works without but not easy because we have a lot. I will confirm you if it's totally solve the problem. Thanks |
Someone in the forum had similar problem, but with percentage sign |
I cannot reproduce on 0.35.4 with Postgres 12.2 with columns that include question mark symbol like |
Hello @flamber , we still have problems with fingerprint analyse but we didn't succeed to define a clear pattern. Some field with specific character like "?" or french "é" seems to fail but others are analysed without problem so I am not sure the root cause is around that. We also have error message on very "standard" database not customized at all like our gitlab internal db, and even on very simple table. For example : In our case after a lot of investigations we have give up on this problem and try to find a workaround to not use fingerprint because we didn't find any solution. |
Could you by any chance share the values in one of the columns that fails (doesn't matter which). I'm thinking it's something in the data that trips fingerprinting up. |
Actually it might be the other way around. Not entirely sure why the name is wrong. Could you manually fix one of the names in the metabase app DB and see if it then syncs that field fine (both for one of the all lower case names and one with an é -- you don't need to fix all of them, just one of each will to, to narrow down the possibilities). To recap: you get this error on various field types (initial ones were numbers, while Also on what version of MB are you on, and do you happen to know the first version you used (if you retained the db throughout migrations)? |
All fields should have a fingerprint, at least the generic part (what's called What you are experiencing is really strange, so I really want to get to the bottom of it. We've hardened fingerprinting considerably in the last few release so one fingerprinter going down shouldn’t bring down the rest. Does any field in the table 1730 have a fingerprint? One more experiment if you don't mind: can you add again one of the databases on which you get the error (just use a different name in MB) and see if the error persists after a fresh add & sync. |
@Nico-P-FR Can you post "Diagnostic Info" from Admin > Troubleshooting? |
If the newly connected DB has all the fields and all the fields have a fingerprint, I suspect the state in the MB database got subtly corrupted and/or out of sync with the DB at some point. Did you do any changes to the dbwh schema since connecting it to MB? Perhaps renamed a table or some such? In general these should be picked up on our end of course, but at least it gives us a better understanding of what's going on. |
No it's clearly not the case. We still have fingerprint missing on the new connections, even after some relaunch of db scan. |
Completed step 'fingerprint-fields' After this new scan (and drop of the table 1730) we have 394 fields "active" without fingerprint on this db id in metabase db. |
Looking at the log, it seems fingerprinting of one table failed in its entirety, table 1685. Are there fingerprints missing on any fields in other tables? Above I was wrong, there is a situation where a field might not have a fingerprint that is completely valid: if the table has no data. Disregard those. |
Yes I finally came to the exact same point : empty tables. I have analysed more deeply the list of all fields without fingerprints in our DB we still have and most of them are on table without any lines. We have :
So finally I think at the beginning of this thread we have multiple problems but now with all the cleaning operations we did and maybe with an improve in last MB version to not block on only 1 field error as you said it seems to works on all fields except on these empty table and on some specific table with a problem of refresh on fields name with/without capital letters but it's in fact before the fingerprint scan. Thanks a lot for your help. I will let you now if I notice another thing around these topics. |
@Nico-P-FR Thank you for helping debug and providing a lot of information! |
Hello,
I have a problem and despite my multiple tries I don't understand the origin.
I have some fields on a postgre table who don't want to "bin". There are set as numeric field and there is no empty value inside. There looks 100% similar to other fields in my db that Metabase accept to bin. But binning still not appear when I group on this field.
I have just noticed that when I try to use the "distribution feature" on this column, I have an error with this message : "Unable to bin Field without a min/max value" so I guess both problems are linked but I didn't find a solution.
Any idea ?
Thanks
The text was updated successfully, but these errors were encountered: