Skip to main content
Ctrl+K
PyFlink 1.20+vvr.11.7.dev0 documentation - Home PyFlink 1.20+vvr.11.7.dev0 documentation - Home
  • API Reference
  • Examples
  • API Reference
  • Examples

Section Navigation

  • PyFlink Table
    • TableEnvironment
    • Table
    • Data Types
    • Window
    • Expressions
    • User Defined Functions
    • Descriptors
    • StatementSet
    • Catalog
  • PyFlink DataStream
  • PyFlink DataFrame
  • PyFlink Common
  • API Reference
  • PyFlink Table
  • Expressions
  • pyflink.table.expression.Expression.to_timestamp

pyflink.table.expression.Expression.to_timestamp#

property Expression.to_timestamp: Expression#

ss[.SSS]” to a SQL Timestamp. It’s equivalent to col.cast(DataTypes.TIMESTAMP(3)).

Example:

>>> lit('2016-06-15 3:30:00.001').to_timestamp

See also

to_date, to_time, to_timestamp, extract(), floor(), ceil()

Added in version 1.12.0.

Type:

Parses a timestamp string in the form “yyyy-MM-dd HH

Type:

mm

previous

pyflink.table.expression.Expression.to_time

next

pyflink.table.expression.Expression.extract

On this page
  • Expression.to_timestamp

This Page

  • Show Source

Created using Sphinx 7.4.7.

Built with the PyData Sphinx Theme 0.16.1.