-
Notifications
You must be signed in to change notification settings - Fork 4.1k
sql: add support for Hasura #72407
Copy link
Copy link
Closed
Labels
A-tools-hasuraC-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)T-sql-foundationsSQL Foundations Team (formerly SQL Schema + SQL Sessions)SQL Foundations Team (formerly SQL Schema + SQL Sessions)meta-issueContains a list of several other issues.Contains a list of several other issues.
Metadata
Metadata
Assignees
Labels
A-tools-hasuraC-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)T-sql-foundationsSQL Foundations Team (formerly SQL Schema + SQL Sessions)SQL Foundations Team (formerly SQL Schema + SQL Sessions)meta-issueContains a list of several other issues.Contains a list of several other issues.
For anyone pursuing updates here, last I've heard is that Hasura is currently working towards making integrations with other databases easier. As soon as we can get any update, we'll look to get the ball moving on this again.
We know we have some features that we need to implement (and are looking to get a lot of these done in the next 6-12 months!) and we hope we can get this working for all of you soon!
Prototype branches
List of needed changes so far:
hasura_gen_uuid()andinsert_event_log. (hasura/graphql-engine@af13f96)ON CONFLICT ((expr))clause (hasura/graphql-engine@dfab446) -- sql: support expressions as ON CONFLICT targets #67893ON UPDATE SKIP LOCKED(hasura/graphql-engine@35366c1) -- sql: supportFOR {UPDATE,SHARE} {SKIP LOCKED,NOWAIT}#40476index, but PG does (hasura/graphql-engine@0439afe)AltJ/ their own thing I don't totally grok to do this decoding, not sure how to change it (it's their own homegrown library: https://github.com/hasura/pg-client-hs). Hasura needs to recognise the "1" at the front is just part of the binary protocol. (see "unknown oid type: 114" when sending JSON data in wire format #88355)pg_catalog.col_descriptionwhich is slow. disabled. hasura/graphql-engine@5da773c (seepg_catalog.col_descriptionis very slow #87947)pg_get_functiondef. We should return NULL. hasura/graphql-engine@74159c2--skip-schema-setupto pytest command, becausedrop schema if exists hge_tests cascade; create schema hge_tests;in the same txn doesn't work.At present time, I have the Haskell engine up, but the pytest has UDFs all over the test suite. Impossible to get around - we need to implement them or the Hasura suite needs to not use them.
Epic CRDB-11916
Jira issue: CRDB-11915