You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "MonsterChenzhuo (via GitHub)" <gi...@apache.org> on 2023/04/20 08:44:13 UTC

[GitHub] [incubator-seatunnel] MonsterChenzhuo opened a new issue, #4635: [Bug] [Assert Sink]Fix the problem that the data type

MonsterChenzhuo opened a new issue, #4635:
URL: https://github.com/apache/incubator-seatunnel/issues/4635

   ### Search before asking
   
   - [X] I had searched in the [issues](https://github.com/apache/incubator-seatunnel/issues?q=is%3Aissue+label%3A%22bug%22) and found no similar issues.
   
   
   ### What happened
   
   
   I defined an Assertsink, using the field_rules method to validate data. I found that bigint, bytes, etc. are not supported. I checked the documentation, and the types do not correspond with some parts of the ST Row type. Please translate this into English.
   
   I have defined an Assertsink and used the field_rules method for data validation. I discovered that bigint, bytes, and so on are not supported. I've reviewed the documentation, and the types don't fully match up with some parts of the ST Row type.
   
   <img width="1238" alt="图片" src="https://user-images.githubusercontent.com/60029759/233310047-edb675d1-1668-4388-b502-db75651e29a0.png">
   
   
   ### SeaTunnel Version
   
   v2.3.1
   
   ### SeaTunnel Config
   
   ```conf
   sink {
     Assert {
       source_table_name = "fake1"
       rules =
         {
           row_rules = [
             {
               rule_type = MAX_ROW
               rule_value = 100
             },
             {
               rule_type = MIN_ROW
               rule_value = 5
             }
           ],
           field_rules = [{
             field_name = name
             field_type = string
             field_value = [
               {
                 rule_type = NOT_NULL
               },
               {
                 rule_type = MIN_LENGTH
                 rule_value = 5
               },
               {
                 rule_type = MAX_LENGTH
                 rule_value = 65535
               }
             ]
           }, {
             field_name = age
             field_type = bigint
             field_value = [
               {
                 rule_type = NOT_NULL
               },
               {
                 rule_type = MIN
                 rule_value = 32767
               },
               {
                 rule_type = MAX
                 rule_value = 2147483647
               }
             ]
           }
           ]
         }
   
     }
   ```
   
   
   ### Running Command
   
   ```shell
   null
   ```
   
   
   ### Error Exception
   
   ```log
   <img width="1188" alt="图片" src="https://user-images.githubusercontent.com/60029759/233310035-7a760d1a-fd79-49e9-9a1e-73e09c964e6c.png">
   ```
   
   
   ### Flink or Spark Version
   
   _No response_
   
   ### Java or Scala Version
   
   _No response_
   
   ### Screenshots
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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: commits-unsubscribe@seatunnel.apache.org.apache.org

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


[GitHub] [seatunnel] github-actions[bot] closed issue #4635: [Bug] [Assert Sink]Fix the problem that the data type

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #4635: [Bug] [Assert Sink]Fix the problem that the data type 
URL: https://github.com/apache/seatunnel/issues/4635


-- 
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: commits-unsubscribe@seatunnel.apache.org

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


[GitHub] [seatunnel] github-actions[bot] commented on issue #4635: [Bug] [Assert Sink]Fix the problem that the data type

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #4635:
URL: https://github.com/apache/seatunnel/issues/4635#issuecomment-1577724861

   This issue has been closed because it has not received response for too long time. You could reopen it if you encountered similar problems in the future.


-- 
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: commits-unsubscribe@seatunnel.apache.org

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


[GitHub] [incubator-seatunnel] github-actions[bot] commented on issue #4635: [Bug] [Assert Sink]Fix the problem that the data type

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #4635:
URL: https://github.com/apache/incubator-seatunnel/issues/4635#issuecomment-1556050330

   This issue has been automatically marked as stale because it has not had recent activity for 30 days. It will be closed in next 7 days if no further activity occurs.


-- 
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: commits-unsubscribe@seatunnel.apache.org

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