WindmillWWindmill
Powered by
MikeM
Windmill•2y ago•
4 replies
Mike

Postgres request throws ExecutionErr when trying to get value from field using enum.

We have a PostgreSQL database that we want to query. in one of the tables we use an enum as a type for one of the columns.

create type conversion_history_status_enum as enum ('done', 'failed');
create type conversion_history_status_enum as enum ('done', 'failed');


Performing just a basic
SELECT status FROM conversion_history
SELECT status FROM conversion_history
will throw this error:

ExecutionErr: error during execution of the script:
conversion issue for value at column_name `status` with type Other(Other { name: "conversion_history_status_enum", oid: 17428288, kind: Enum(["done", "failed"]), schema: "public" })
ExecutionErr: error during execution of the script:
conversion issue for value at column_name `status` with type Other(Other { name: "conversion_history_status_enum", oid: 17428288, kind: Enum(["done", "failed"]), schema: "public" })


What could be causing this?
Running the same query from Datagrip for example works without any problems.
WindmillJoin
3,362Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?
Recent Announcements
henri-c

Weekly kenote to tell you about our latest updates https://discord.com/channels/930051556043276338/1278977038430240813 https://youtube.com/live/2dGd9TdT8xs?feature=share

henri-c · 4d ago

Pyra

### HTTP tracing (EE) Capture HTTP requests made by job scripts as observability spans Features: - View HTTP request traces (method, URL, status, timing) in the job details UI - Auto-instrumentation for Native TypeScript, MITM proxy for other languages - Integrates with external OpenTelemetry collectors changelog: https://www.windmill.dev/changelog/http-tracing docs: https://www.windmill.dev/docs/advanced/instance_settings#http-tracing Additionally jobs memory metrics are now fully OSS!

Pyra · 2w ago

henri-c

First keynote of the year here https://discord.com/channels/930051556043276338/1278977038430240813 🙂

henri-c · 4w ago

Similar Threads

How to debug ExecutionErr(only Bun)?
EricEEric / help
2y ago
u/admin/hub_sync ExecutionErr
alexBroAalexBro / help
2y ago
Connect postgres from docker.
CamoCCamo / help
2y ago
Trying to run GraphQL script with windmill TS client throws error
Stefan-neoSStefan-neo / help
2y ago