davidradl commented on code in PR #25763: URL: https://github.com/apache/flink/pull/25763#discussion_r1905555186
########## flink-python/pyflink/table/expressions.py: ########## @@ -306,19 +306,38 @@ def to_timestamp(timestamp_str: Union[str, Expression[str]], return _binary_op("toTimestamp", timestamp_str, format) -def to_timestamp_ltz(numeric_epoch_time, precision) -> Expression: +def to_timestamp_ltz(*args) -> Expression: """ - Converts a numeric type epoch time to TIMESTAMP_LTZ. + Converts a value to a timestamp with local time zone. - The supported precision is 0 or 3: - 0 means the numericEpochTime is in second. - 3 means the numericEpochTime is in millisecond. + Supported functions: + 1. to_timestamp_ltz(Numeric) -> DataTypes.TIMESTAMP_LTZ + 2. to_timestamp_ltz(Numeric, Integer) -> DataTypes.TIMESTAMP_LTZ Review Comment: The supported functions as documents only include the types; it would be good to define what the parameters are expected to be, including the valid values for precision. I think this should be defined explicity rather than just implied from the examples. -- 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: issues-unsubscr...@flink.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org