You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by "azexcy (via GitHub)" <gi...@apache.org> on 2023/02/06 09:37:27 UTC

[GitHub] [shardingsphere] azexcy opened a new issue, #24023: Migration do not support PostgreSQL json type.

azexcy opened a new issue, #24023:
URL: https://github.com/apache/shardingsphere/issues/24023

   ## Bug Report
   
   Migration do not support PostgreSQL json type.
   
   source table init SQL
   ```
   CREATE TABLE test.t_order (order_id int8 NOT NULL,user_id int4 NOT NULL,status varchar ( 50 ) NULL,t_json json NULL);
   
   INSERT INTO test.t_order (order_id, user_id, status, t_json) VALUES (1, 2, '1', null);
   ```
   
   When execute `MIGRATE TABLE ds_0.test.t_order INTO sharding_db.t_order;`, wait the job status is `EXECUTE_INVENTORY_TASK`.
   Then execute sql `UPDATE test.t_order SET t_json = '{"test": "ok2"}' WHERE order_id = 1;` at source datatase
   
   The following error will occur
   ```
   ERROR: column "t_json" is of type json but expression is of type character varying
     建议:You will need to rewrite or cast the expression.
     位置:79  Call getNextException to see other errors in the batch.
   ```
   
   ### Which version of ShardingSphere did you use?
   
   master
   
   ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
   
   ShardingSphere-Proxy
   
   ### Expected behavior
   
   No exception occur and data is correctly synchronized
   
   ### Actual behavior
   
   exception occur 
   
   ### Reason analyze (If you can)
   
   ### Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.
   
   ### Example codes for reproduce this issue (such as a github link).
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [shardingsphere] sandynz closed issue #24023: Migration not support PostgreSQL json type.

Posted by "sandynz (via GitHub)" <gi...@apache.org>.
sandynz closed issue #24023: Migration not support PostgreSQL json type.
URL: https://github.com/apache/shardingsphere/issues/24023


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org