You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by GitBox <gi...@apache.org> on 2022/01/24 13:54:40 UTC

[GitHub] [incubator-seatunnel] asdf2014 opened a new issue #1157: [Bug] [Transform] Should use the zero-length array for toArray method

asdf2014 opened a new issue #1157:
URL: https://github.com/apache/incubator-seatunnel/issues/1157


   ### 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
   
   We should use the zero-lenght array for `toArray` method for better performance. [Here](https://yuzhouwan.com/posts/190413/#toArray-%E6%96%B9%E6%B3%95) is the detail analyze for this.
   
   ![image](https://user-images.githubusercontent.com/8108788/150794852-ecc4a5f1-dd99-4cba-a635-1d6c99b04509.png)
   
   FYI, https://github.com/apache/incubator-seatunnel/blob/dev/seatunnel-transforms/seatunnel-transform-flink-split/src/main/java/org/apache/seatunnel/flink/transform/Split.java#L101
   
   ### SeaTunnel Version
   
   The latest (2.0.5-SNAPSHOT)
   
   ### SeaTunnel Config
   
   ```conf
   N/A
   ```
   
   
   ### Running Command
   
   ```shell
   N/A
   ```
   
   
   ### Error Exception
   
   ```log
   N/A
   ```
   
   
   ### 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: commits-unsubscribe@seatunnel.apache.org

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



[GitHub] [incubator-seatunnel] CalvinKirs closed issue #1157: [Bug] [Transform] Should use the zero-length array for toArray method

Posted by GitBox <gi...@apache.org>.
CalvinKirs closed issue #1157:
URL: https://github.com/apache/incubator-seatunnel/issues/1157


   


-- 
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] CalvinKirs closed issue #1157: [Bug] [Transform] Should use the zero-length array for toArray method

Posted by GitBox <gi...@apache.org>.
CalvinKirs closed issue #1157:
URL: https://github.com/apache/incubator-seatunnel/issues/1157


   


-- 
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