Skip to content

Commit

Permalink
make formatters private
Browse files Browse the repository at this point in the history
  • Loading branch information
EMsnap committed Dec 18, 2023
1 parent 351f55d commit c6ed800
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

package org.apache.inlong.sort.function;

import org.apache.flink.table.functions.FunctionContext;
import org.apache.flink.table.functions.ScalarFunction;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
Expand All @@ -37,7 +38,12 @@ public class RoundTimestampFunction extends ScalarFunction {

public static final Logger LOG = LoggerFactory.getLogger(RoundTimestampFunction.class);
public static final ZoneId DEFAULT_ZONE = ZoneId.systemDefault();
private static final Map<String, DateTimeFormatter> formatters = new HashMap<>();
private transient Map<String, DateTimeFormatter> formatters;

public void open(FunctionContext context) throws Exception {
super.open(context);
formatters = new HashMap<>();
}

/**
* Round timestamp and output formatted timestamp.
Expand Down

0 comments on commit c6ed800

Please sign in to comment.