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
Migration doesn't like rows with null characters #40835
Comments
the query being executed is UPDATE revision
SET object = jsonb_set(
object::jsonb, '{type}',
to_jsonb(CASE
WHEN (object::jsonb->>'dataset')::boolean THEN 'model'
ELSE 'question'
END)::jsonb, true)
WHERE model = 'Card' AND (object::jsonb->>'dataset') IS NOT NULL; it's probably something weird in your |
this is interesting, what's that win.ini thing in the database? |
@qnkhuat @paoliniluis
|
So the fix is simple, wipe that stuff from the database. I just changed the name of the issue to reflect the actual problem |
resolved by #41584, the issue was that for postgres, converting text to JSONB doesn't work if the text contains any null characters. |
Describe the bug
Hello,
I'm running metabase service on ubuntu and postgresql 14 as database.
psql (14.9 (Ubuntu 14.9-0ubuntu0.22.04.1))
Trying to update from 48.8 to 49.2 but metabase service doent work properly,
when check journalctl there are some errors as
another error:
full log:
https://hackmd.io/@OdFNQ07XQeCmq8QL3wcWzw/BJluLgOJ0
To Reproduce
follow update instructions.
Change newer merabase.jar and start metabase service
Expected behavior
No response
Logs
No response
Information about your Metabase installation
Severity
FATAL
Additional context
No response
The text was updated successfully, but these errors were encountered: