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
Type suggestions broken #3105
Comments
Ok, what the heck? Type suggestions are working for me again! Something strange is going on. I've tried on exactly the same commit. No code changes. I've tried exactly the same steps. Different behavior. I'm going to leave this ticket open in case someone might have some insight. But it's possible I ended up in some kind of weird state that is gone now. |
Hey friends, if it helps I tried importing the provided birds.csv on my dev instance (commit 59e6e76) and all columns are also imported as text. |
Scratch that, after following the instructions below it works. |
Oh, that's very helpful @spapas. Thanks! |
I had a, maybe related problem, where I had to |
Ok interesting hypothesis @dmos62. I performed the following actions in an attempt to corroborate your hypothesis...
I was really hoping I'd be able to reproduce it, especially in step 5. I don't know what to make of this. It seems like a slippery issue! |
@dmos62 how can I check if these postgresql functions have been installed on my db and install them if needed? Notice that I use a bare metal installation and to upgrade I fetch the latest changes and run |
@spapas I asked @mathemancer to respond to you. Some related things have been in flux and I'm not confident that my understanding is up-to-date. @seancolsen for what it's worth, I've not been able to reproduce on a post-#3097 branch. |
@spapas If you want to run the script via python to upgrade the DB functions, run: python install.py --skip-confirm >> /tmp/install.py.log from the However, note that upgrading from DROP SCHEMA msar CASCADE; DANGER: if you've built any tables that depend on functions from that schema (unlikely), those will be dropped. After that, run the python command above, and you should have the functions and types properly installed. Edit: To simply see whether the functions are installed, try to import a CSV. The most recent DB-layer change changed a function signature in a way that will break if you don't have the newest DB functions installed. |
Hey @mathemancer thanks for the tip; after I run Wouldn't it be possible to create a migration for installing these functions to the database to avoid running the code? |
Also I'm happy to confirm that after running install.py the type suggestion works fine for birds.csv on my dev env. |
Marking it as |
Should this be closed? We could open a new issue for occassional problems when upgrading our Postgres libraries. |
I agree to close this. |
Steps to reproduce
Import birds.csv
Expect numerical columns to be inferred as "Number".
Observe all columns are inferred as "Text".
This is because the response from the
/api/db/v0/tables/3017/type_suggestions/
endpoint is:I'm not able to reproduce this on 73ca8e9. Then immediately after #3097 was merged, I am able to reproduce this on 1edd461.
CC @mathemancer who authored #3097 and @dmos62 who reviewed it.
This regression makes my work on optional type inference a bit difficult.
The text was updated successfully, but these errors were encountered: