Re: [PATCH] Cover get_json_table_plan() with tests
Re: [PATCH] Cover get_json_table_plan() with tests
От:
solai v <solai.cdac@gmail.com>
Дата:
> I noticed that get_json_table_plan() is never executed by the existing > tests. The proposed patch fixes this. Hi Aleksander, I tested this patch on the current PostgreSQL master.The patch applied cleanly, but make check reported one regression test failure in sqljson_jsontable. Looking at regression.diffs, the failure comes from the newly added JSON_TABLE ... PLAN (...) statements. On my setup, they fail with: ERROR: syntax error at or near "PLAN" I also tried running the same JSON_TABLE ... PLAN (...) query manually in psql and got the same syntax error. Apart from that, I verified that the existing JSON_TABLE functionality still works as expected. I tested SELECT, EXPLAIN, EXPLAIN VERBOSE, and EXPLAIN ANALYZE, and they all produced the expected results. Is this patch expected to be applied on top of another patch that adds support for the JSON_TABLE PLAN (...) syntax? Regards, Solai
Re: [PATCH] Cover get_json_table_plan() with tests
От:
Aleksander Alekseev <aleksander@tigerdata.com>
Дата:
Hi Solai, Thanks for the feedback! > I tested this patch on the current PostgreSQL master.The patch applied > cleanly, but make check reported one regression test failure in > sqljson_jsontable. > Looking at regression.diffs, the failure comes from the newly added > JSON_TABLE ... PLAN (...) statements. On my setup, they fail with: > ERROR: syntax error at or near "PLAN" > I also tried running the same JSON_TABLE ... PLAN (...) query manually > in psql and got the same syntax error. > Apart from that, I verified that the existing JSON_TABLE functionality > still works as expected. I tested SELECT, EXPLAIN, EXPLAIN VERBOSE, > and EXPLAIN ANALYZE, and they all produced the expected results. > Is this patch expected to be applied on top of another patch that adds > support for the JSON_TABLE PLAN (...) syntax? The patch needs a rebase after today's commits. I will figure it out and submit the updated version. -- Best regards, Aleksander Alekseev
Re: [PATCH] Cover get_json_table_plan() with tests
Hi, > The patch needs a rebase after today's commits. I will figure it out > and submit the updated version. Rebased. > I also tried running the same JSON_TABLE ... PLAN (...) query manually > in psql and got the same syntax error. Works for me. Make sure you are using the latest version of the `master` branch. -- Best regards, Aleksander Alekseev