pg_analytics
pg_analytics copied to clipboard
JSON not supported
What happens?
When running this query I get an error:
SELECT "varchar_column"::JSON
FROM predictions
Error:
Query 1 ERROR at Line 1: : ERROR: Column varchar_column has Arrow data type Utf8 but is mapped to the BuiltIn(JSONOID) type in Postgres, which are incompatible. If you believe this conversion should be supported, please submit a request at https://github.com/paradedb/paradedb/issues.
To Reproduce
OS:
Ubuntu(?) with PostgreSQL 16.3
ParadeDB Version:
0.8.3
Full Name:
Janis
Affiliation:
Typewise
What is the latest build you tested with? If possible, we recommend testing by compiling the latest dev
branch.
I have tested with a stable release
Did you include all relevant data sets for reproducing the issue?
Yes
Did you include the code required to reproduce the issue?
- [X] Yes, I have
Did you include all relevant configurations (e.g., CPU architecture, PostgreSQL version, Linux distribution) to reproduce the issue?
- [X] Yes, I have
To Reproduce
Try to cast to JSON, either in a query or when creating the foreign table.
OS:
Ubuntu(?) with PostgreSQL 16.3
ParadeDB Version:
0.8.3
Full Name:
Janis
Affiliation:
Typewise
What is the latest build you tested with? If possible, we recommend testing by compiling the latest dev
branch.
I have tested with a stable release
Did you include all relevant data sets for reproducing the issue?
Yes
Did you include the code required to reproduce the issue?
- [X] Yes, I have
Did you include all relevant configurations (e.g., CPU architecture, PostgreSQL version, Linux distribution) to reproduce the issue?
- [X] Yes, I have