You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For the failing request, clicking on "Analyzing" just show the error type "compfoo_pipeline" does not exist
Suggestion : it should be useful to see the SQL resquest, even if it fails
In the server log I see however the request :
hasura_1 | {"type":"query-log","timestamp":"2021-10-05T15:26:21.700+0000","level":"info","detail":
{"kind":"database","request_id":"081269a8-248d-4051-93d6-818e51a76d00","generated_sql":
{"pipeline_test_compfoo":{"prepared_arguments":[[2,"b"]],"query":"SELECT coalesce(json_agg(\"root\" ), '[]' )
AS \"root\" FROM (SELECT row_to_json((SELECT \"_1_e\" FROM (SELECT \"_0_root.base\".\"c1\"
AS \"c1\", \"_0_root.base\".\"c2\" AS \"c2\" ) AS \"_1_e\" ) ) AS \"root\" FROM (SELECT *
FROM \"pipeline\".\"test_compfoo\" WHERE ((\"pipeline\".\"test_compfoo\".\"c2\") = (($2)::compfoo_pipeline)))
AS \"_0_root.base\" ) AS \"_2_root\" "}},"query": {"operationName":"MyQuery","query":"query MyQuery
{\n pipeline_test_compfoo(where: {c2: {_eq: \"b\"}}) {\n c1\n c2\n }\n}\n"}}}
Version Information
Server Version: v2.0.9
CLI Version (for CLI related issue): 2.0.9
Environment
Running into a local docker
What is the expected behaviour?
Query a table with a column which type is a data type created by
CREATE TYPE
and stored in a schema which is not the public oneKeywords
hasura query type schema "does not exist"
What is the current behaviour?
The query fails with
type xxx does not exist
How to reproduce the issue?
test_compfoo
into the schemapipeline
:Table
test_compfoo
in Hasura :3. Go to Hasura API
4. A simple query is working:
Response is ok:
5. Querying upon
c1
column (data type in the public schema) is also ok :Response is also ok:
6. Querying upon
c2
column (data type NOT in the public schema) is failing :Response is
Screenshots or Screencast
See screenshots included above
Please provide any traces or logs that could help here.
With the query on
c1
, which is successful, click onAnalyzing
gives the following SQL request:For the failing request, clicking on "Analyzing" just show the error
type "compfoo_pipeline" does not exist
Suggestion : it should be useful to see the SQL resquest, even if it fails
In the server log I see however the request :
which is this SQL request :
Indeed, when I make this request in the SQL server, I get
If I add the schema name when using the cast
:: compfoo_pipeline
:I get the expected result :
Any possible solutions?
In my database, if I set the
search_path
variable to include the pipeline schema, request is OK without prefixing the data type :I see then 2 ways :
Can you identify the location in the source code where the problem exists?
No
If the bug is confirmed, would you be willing to submit a PR?
If I can identify the location in the source code, I may try to search a solution, but I'm not sure to succeed
The text was updated successfully, but these errors were encountered: