I was trying to write a JSON string and/or object to a PostgreSQL JSON or JSONB column. I saw the exception that AQTableWriter does not support modifying JSON or JSONB columns currently. I was able to write my JSON into a TEXT column.
1) Is there an alternate API currently available that would allow updating / inserting into an actual JSON or JSONB column in a Postgres table?
2) Is there a way to invoke a Postgres stored procedure, which might in turn write natively into JSON/JSONB? In fact, I have not noticed any examples of calling a stored procedure from AquaScript.
3) Is there a time line currently anticipated when Postgres support for JSON/JSONB will be available in AQTableWriter, or perhaps more generally in AquaScript?
@tom: Look at DSTableWriter.java. Line 196 checks to see if colInfo._isEditable. For JSON, it returns false. However, JSON is editable via our table data editor. Also, Line 483 has code to supprt JSON data type. Examine what happens if you set colInfo._isEditable to be true.
Perform a similar exercise for JSONB as well.
PG Doc: JSON & JSONB
Once finished w/ your analysis, lets discuss
V18 svn #54886 and V19 svn #54885 - Added JSON and JSONB to PostgreSQL Aquascript data inserts.
Here is an example testcase:
1) Create the table using QA.
V18 svn #54886 and V19 svn #54885 - Added JSON and JSONB to PostgreSQL Aquascript data inserts.
Here is an example testcase:
1) Create the table using QA.
Hi QA Team,
Please regression test that the json and jsonb work across Table editor, ER modeler, Import, Export and Schema script generator for PostgreSQL. Create some test cases similar to the test case above and confirm that inserts into a JSON and JSONB column from Aquascript are now working and accurate.
Thanks, Tom
Hi QA Team,
Please regression test that the json and jsonb work across Table editor, ER modeler, Import, Export and Schema script generator for PostgreSQL. Create some test cases similar to the test case above and confirm that inserts into a JSON and JSONB column from Aquascript are now working and accurate.
Thanks, Tom
The below patch addresses this issue:
The below patch addresses this issue:
Issue #15350 |
Closed |
Fixed |
Resolved |
Completion |
No due date |
Fixed Build ADS 18.0.17-1 & ADS 19.0.0-alpha-61 |
No time estimate |
2 issue links |
relates to #15356
Issue #15356Table Data Editor: Updating JSON value has missing ' |
breaks #15355
Issue #15355Import Excel fail for JSON datatype when we use Batch /Threshold Transaction Type. |
@tom: Look at DSTableWriter.java. Line 196 checks to see if colInfo._isEditable. For JSON, it returns false. However, JSON is editable via our table data editor. Also, Line 483 has code to supprt JSON data type. Examine what happens if you set colInfo._isEditable to be true.
Perform a similar exercise for JSONB as well.
PG Doc: JSON & JSONB
Once finished w/ your analysis, lets discuss