snuyanzin commented on code in PR #30158:
URL: https://github.com/apache/flink/pull/30158#discussion_r4711914680


##########
flink-table/flink-table-common/src/main/java/org/apache/flink/table/utils/DateTimeUtils.java:
##########
@@ -152,6 +152,19 @@ public class DateTimeUtils {
     private static final int DEFAULT_PRECISION = 3;
     private static final int MIN_PRECISION = 0;
     private static final int MAX_PRECISION = 9;
+    // 10^i for each precision, which Math.pow would compute on every call
+    private static final long[] POWERS_OF_TEN = {

Review Comment:
   no need to calculate it for every record



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