You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "wuchunfu (via GitHub)" <gi...@apache.org> on 2025/09/18 11:40:58 UTC

[I] [Bug] [connector-doris] Unable to read timestamp data from doris [seatunnel]

wuchunfu opened a new issue, #9876:
URL: https://github.com/apache/seatunnel/issues/9876

   ### Search before asking
   
   - [x] I had searched in the [issues](https://github.com/apache/seatunnel/issues?q=is%3Aissue+label%3A%22bug%22) and found no similar issues.
   
   
   ### What happened
   
   Unable to read timestamp data from doris, the currently read data is `1970-01-01T00:29:17.537432`, Doris version is 2.1.3
   
   ### SeaTunnel Version
   
   2.3.12
   
   ### SeaTunnel Config
   
   ```conf
   {
       "env": {
           "parallelism": 1,
           "job.name": "Doris-Console",
           "job.mode": "BATCH",
           "job.retry.times": 3,
           "job.retry.interval.seconds": 5
       },
       "source": [
           {
               "plugin_name": "Doris",
               "result_table_name": "test",
               "fenodes": "127.0.0.1:8030",
               "query-port": 9030,
               "username": "xxx",
               "password": "xxx",
               "database": "test",
               "table": "test_table",
               "doris.batch.size": 2000,
               "doris.request.connect.timeout.ms": 30000,
               "doris.exec.mem.limit": 2147483648,
               "doris.request.retries": 3,
               "doris.filter.query": "",
               "properties": {
                   "timezone": "Asia/Shanghai"
               }
           }
       ],
       "transform": [
   
       ],
       "sink": [
           {
               "plugin_name": "Console",
               "source_table_name": "test"
           }
       ]
   }
   ```
   
   ### Running Command
   
   ```shell
   bash bin/seatunnel.sh -m local --config job/doris-console.json
   ```
   
   ### Error Exception
   
   ```log
   -
   ```
   
   ### Zeta or Flink or Spark Version
   
   _No response_
   
   ### Java or Scala Version
   
   _No response_
   
   ### Screenshots
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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: commits-unsubscribe@seatunnel.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] [connector-doris] Unable to read timestamp data from doris [seatunnel]

Posted by "dybyte (via GitHub)" <gi...@apache.org>.
dybyte commented on issue #9876:
URL: https://github.com/apache/seatunnel/issues/9876#issuecomment-3332518917

   Could you share the original timestamp value from Doris? @wuchunfu 


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] [connector-doris] Unable to read timestamp data from doris [seatunnel]

Posted by "dybyte (via GitHub)" <gi...@apache.org>.
dybyte commented on issue #9876:
URL: https://github.com/apache/seatunnel/issues/9876#issuecomment-3332354541

   Could you assign it to me?


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] [connector-doris] Unable to read timestamp data from doris [seatunnel]

Posted by "wuchunfu (via GitHub)" <gi...@apache.org>.
wuchunfu closed issue #9876: [Bug] [connector-doris] Unable to read timestamp data from doris
URL: https://github.com/apache/seatunnel/issues/9876


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] [connector-doris] Unable to read timestamp data from doris [seatunnel]

Posted by "dybyte (via GitHub)" <gi...@apache.org>.
dybyte commented on issue #9876:
URL: https://github.com/apache/seatunnel/issues/9876#issuecomment-3336769491

   Hi @wuchunfu 
   This issue has been identified as being caused by Doris incorrectly handling the timestamp type.
   Please refer to the related [Doris issue](https://github.com/apache/doris/issues/38174) for details.
   To resolve this problem, please use a Doris version that includes the PR fixing this issue.
   It seems we can close this issue now.


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] [connector-doris] Unable to read timestamp data from doris [seatunnel]

Posted by "wuchunfu (via GitHub)" <gi...@apache.org>.
wuchunfu commented on issue #9876:
URL: https://github.com/apache/seatunnel/issues/9876#issuecomment-3342358398

   @dybyte Thank you for your help, verified, `doris 2.1.8` has fixed this issue


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] [connector-doris] Unable to read timestamp data from doris [seatunnel]

Posted by "LeonYoah (via GitHub)" <gi...@apache.org>.
LeonYoah commented on issue #9876:
URL: https://github.com/apache/seatunnel/issues/9876#issuecomment-3307853287

   Please send the error log


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] [connector-doris] Unable to read timestamp data from doris [seatunnel]

Posted by "wuchunfu (via GitHub)" <gi...@apache.org>.
wuchunfu commented on issue #9876:
URL: https://github.com/apache/seatunnel/issues/9876#issuecomment-3310180920

   > Please send the error log
   
   There are no error logs, but the output timestamp data is incorrect
   
   ```
   [1021232031381585921] 2025-09-19 09:31:38,839 INFO  org.apache.seatunnel.connectors.seatunnel.common.source.arrow.reader.ArrowToSeatunnelRowReader - one batch in arrow row count size '1'
   [1021232031381585921] 2025-09-19 09:31:38,919 INFO  org.apache.seatunnel.connectors.seatunnel.console.sink.ConsoleSinkWriter - subtaskIndex=0  rowIndex=1:  SeaTunnelRow#tableId=xin_liu.ads_user_detail01 SeaTunnelRow#kind=INSERT : 李四, app_2002, 1970-01-01T08:29:17.917500, 2
   [1021232031381585921] 2025-09-19 09:31:38,935 INFO  org.apache.seatunnel.connectors.seatunnel.common.source.arrow.reader.ArrowToSeatunnelRowReader - one batch in arrow row count size '1'
   [1021232031381585921] 2025-09-19 09:31:38,935 INFO  org.apache.seatunnel.connectors.seatunnel.console.sink.ConsoleSinkWriter - subtaskIndex=0  rowIndex=2:  SeaTunnelRow#tableId=xin_liu.ads_user_detail01 SeaTunnelRow#kind=INSERT : 王五, app_3003, 1970-01-01T08:29:19.142700, 3
   [1021232031381585921] 2025-09-19 09:31:38,945 INFO  org.apache.seatunnel.connectors.seatunnel.common.source.arrow.reader.ArrowToSeatunnelRowReader - one batch in arrow row count size '1'
   [1021232031381585921] 2025-09-19 09:31:38,946 INFO  org.apache.seatunnel.connectors.seatunnel.console.sink.ConsoleSinkWriter - subtaskIndex=0  rowIndex=3:  SeaTunnelRow#tableId=xin_liu.ads_user_detail01 SeaTunnelRow#kind=INSERT : 张三, app_1001, 1970-01-01T08:29:16.686600, 1
   [1021232031381585921] 2025-09-19 09:31:38,963 INFO  org.apache.seatunnel.connectors.doris.source.reader.DorisSourceReader - Closed the bounded Doris source
   ```


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] [connector-doris] Unable to read timestamp data from doris [seatunnel]

Posted by "wuchunfu (via GitHub)" <gi...@apache.org>.
wuchunfu commented on issue #9876:
URL: https://github.com/apache/seatunnel/issues/9876#issuecomment-3336590963

   > Could you share the original timestamp value from Doris? [@wuchunfu](https://github.com/wuchunfu)
   
   ```sql
   CREATE TABLE `test_table` (
     `name` VARCHAR(64) NOT NULL,
     `app_id` VARCHAR(255) NOT NULL,
     `partition_time` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
     `city_id` INT NOT NULL DEFAULT "1" COMMENT '城市编码'
   ) ENGINE=OLAP
   DUPLICATE KEY(`name`)
   COMMENT '测试表'
   PARTITION BY RANGE(`partition_time`)
   (PARTITION p_20250901 VALUES [('2025-09-01 00:00:00'), ('2025-09-02 00:00:00')),
   PARTITION p_20250902 VALUES [('2025-09-02 00:00:00'), ('2025-09-03 00:00:00')),
   PARTITION p_20250903 VALUES [('2025-09-03 00:00:00'), ('2025-09-04 00:00:00')),
   PARTITION p_20250904 VALUES [('2025-09-04 00:00:00'), ('2025-09-05 00:00:00')),
   PARTITION p_20250905 VALUES [('2025-09-05 00:00:00'), ('2025-09-06 00:00:00')),
   PARTITION p_20250906 VALUES [('2025-09-06 00:00:00'), ('2025-09-07 00:00:00')),
   PARTITION p_20250907 VALUES [('2025-09-07 00:00:00'), ('2025-09-08 00:00:00')),
   PARTITION p_20250908 VALUES [('2025-09-08 00:00:00'), ('2025-09-09 00:00:00')),
   PARTITION p_20250909 VALUES [('2025-09-09 00:00:00'), ('2025-09-10 00:00:00')),
   PARTITION p_20250910 VALUES [('2025-09-10 00:00:00'), ('2025-09-11 00:00:00')),
   PARTITION p_20250911 VALUES [('2025-09-11 00:00:00'), ('2025-09-12 00:00:00')),
   PARTITION p_20250912 VALUES [('2025-09-12 00:00:00'), ('2025-09-13 00:00:00')),
   PARTITION p_20250913 VALUES [('2025-09-13 00:00:00'), ('2025-09-14 00:00:00')),
   PARTITION p_20250914 VALUES [('2025-09-14 00:00:00'), ('2025-09-15 00:00:00')),
   PARTITION p_20250915 VALUES [('2025-09-15 00:00:00'), ('2025-09-16 00:00:00')),
   PARTITION p_20250916 VALUES [('2025-09-16 00:00:00'), ('2025-09-17 00:00:00')),
   PARTITION p_20250917 VALUES [('2025-09-17 00:00:00'), ('2025-09-18 00:00:00')),
   PARTITION p_20250918 VALUES [('2025-09-18 00:00:00'), ('2025-09-19 00:00:00')),
   PARTITION p_20250919 VALUES [('2025-09-19 00:00:00'), ('2025-09-20 00:00:00')),
   PARTITION p_20250920 VALUES [('2025-09-20 00:00:00'), ('2025-09-21 00:00:00')),
   PARTITION p_20250921 VALUES [('2025-09-21 00:00:00'), ('2025-09-22 00:00:00')),
   PARTITION p_20250922 VALUES [('2025-09-22 00:00:00'), ('2025-09-23 00:00:00')),
   PARTITION p_20250923 VALUES [('2025-09-23 00:00:00'), ('2025-09-24 00:00:00')),
   PARTITION p_20250924 VALUES [('2025-09-24 00:00:00'), ('2025-09-25 00:00:00')),
   PARTITION p_20250925 VALUES [('2025-09-25 00:00:00'), ('2025-09-26 00:00:00')),
   PARTITION p_20250926 VALUES [('2025-09-26 00:00:00'), ('2025-09-27 00:00:00')),
   PARTITION p_20250927 VALUES [('2025-09-27 00:00:00'), ('2025-09-28 00:00:00')),
   PARTITION p_20250928 VALUES [('2025-09-28 00:00:00'), ('2025-09-29 00:00:00')),
   PARTITION p_20250929 VALUES [('2025-09-29 00:00:00'), ('2025-09-30 00:00:00')))
   DISTRIBUTED BY HASH(`name`) BUCKETS 1
   PROPERTIES (
   "replication_allocation" = "tag.location.default: 1",
   "min_load_replica_num" = "-1",
   "is_being_synced" = "false",
   "storage_medium" = "hdd",
   "storage_format" = "V2",
   "inverted_index_storage_format" = "V1",
   "light_schema_change" = "true",
   "disable_auto_compaction" = "false",
   "enable_single_replica_compaction" = "false",
   "group_commit_interval_ms" = "10000",
   "group_commit_data_bytes" = "134217728"
   );
   ```
   
   <img width="629" height="87" alt="Image" src="https://github.com/user-attachments/assets/5d8add87-adab-456a-8478-733822c9b2dd" />
   
   @dybyte 


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org