Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-15310

A timestamp result get by a select sql and a csvsink sql is different

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 1.10.0
    • None
    • Table SQL / Client
    • None
    • execution:
      planner: blink
      type: batch

    Description

      The sql is:
      CREATE TABLE `orders` (
      rowtime TIMESTAMP,
      id INT,
      product VARCHAR,
      units INT
      ) WITH (
      'format.field-delimiter'='|',
      'connector.type'='filesystem',
      'format.derive-schema'='true',
      'connector.path'='/defender_test_data/daily_regression_blink_sql_1.10/test_agg/sources/orders.csv',
      'format.type'='csv'
      );
      select floor(rowtime to hour) as rowtime, count as c from orders group by floor(rowtime to hour)

      The result got in a sqlClient environment which use the sql above is like this:

      But the same sql write directly to a cvs batch sink will get a result like this:
      1972-03-06 08:44:36.736|4
      1972-03-06 08:44:36.736|1

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              xiaojin.wy xiaojin.wy
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: