WenDing-Y opened a new issue, #9358:
URL: https://github.com/apache/seatunnel/issues/9358

   ### Search before asking
   
   - [x] I had searched in the 
[issues](https://github.com/apache/seatunnel/issues?q=is%3Aissue+label%3A%22bug%22)
 and found no similar issues.
   
   
   ### What happened
   
   Kafka has multiple test cases, but there is no assertion on the number of 
data rows read. Even problematic test cases can pass the test.
   
   example file
   kafkasource_timestamp_to_console.conf 
   
   
   `env {
     parallelism = 1
     job.mode = "BATCH"
   }
   
   source {
     Kafka {
       bootstrap.servers = "kafkaCluster:9092"
       topic = "test_topic_source"
       plugin_output = "kafka_table"
       # The default format is json, which is optional
       format = json
       start_mode = timestamp
       schema = {
         fields {
           id = bigint
         }
       }
       start_mode.timestamp = 1667179890315
     }
   
     # If you would like to get more information about how to configure 
seatunnel and see full list of source plugins,
     # please go to 
https://seatunnel.apache.org/docs/connector-v2/source/KafkaSource
   }
   
   transform {
   }
   
   sink {
     Assert {
       plugin_input = "kafka_table"
       rules =
         {
           field_rules = [
             {
               field_name = id
               field_type = bigint
               field_value = [
   
                 {
                   rule_type = MIN
                   rule_value = 0
                 },
                 {
                   rule_type = MAX
                   rule_value = 99
                 }
               ]
             }
           ]
           row_rules = [
                   {
                     rule_type = MIN_ROW
                     rule_value = 1
                   }
                 ]
         }
     }
   }`
   
   ### SeaTunnel Version
   
   2.3.10
   
   ### SeaTunnel Config
   
   ```conf
   2.3.10
   ```
   
   ### Running Command
   
   ```shell
   public void testKafkaTimestampToConsole(TestContainer container)
               throws IOException, InterruptedException {
           Container.ExecResult execResult =
                   
container.executeJob("/kafka/kafkasource_timestamp_to_console.conf");
           Assertions.assertEquals(0, execResult.getExitCode(), 
execResult.getStderr());
       }
   ```
   
   ### Error Exception
   
   ```log
   none
   ```
   
   ### Zeta or Flink or Spark Version
   
   _No response_
   
   ### Java or Scala Version
   
   _No response_
   
   ### Screenshots
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [x] 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to