Ctrl+K
Logo image Logo image

Site Navigation

  • API Reference
  • Examples

Site Navigation

  • API Reference
  • Examples

Section Navigation

  • PyFlink Table
    • TableEnvironment
    • Table
    • Data Types
    • Window
    • Expressions
    • User Defined Functions
    • Descriptors
    • StatementSet
    • Catalog
  • PyFlink DataStream
  • PyFlink Common

pyflink.table.expression.Expression.to_timestamp#

property Expression.to_timestamp: pyflink.table.expression.Expression#

Parses a timestamp string in the form “yyyy-MM-dd HH:mm: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()

New in version 1.12.0.

previous

pyflink.table.expression.Expression.to_time

next

pyflink.table.expression.Expression.extract

Show Source

Created using Sphinx 4.5.0.