alibaba / alibaba/DataX

elasticsearchwriter从oracle同步es时间date类型向es插入时format失败

Open
#612 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
17.4k
Forks
5.7k
PR merge metrics
No merged PRs in 30d

Description

我在oracle中保存的date类型数据,用elasticsearchwriter写入es的时候,一直保存的是默认的 UTC 格式。我的时间转换结果成:2016-07-04T03:03:12.616Z,,按照参考例子date类型字段设置了format yyyy-mm-dd hh-mm-ss也设置了Timezone Asain/Shanghai 插入的时候还是utc格式不是正确的年月日时分秒格式

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the ElasticsearchWriter date-handling path and reproduce the Oracle DATE to Elasticsearch conversion using the format and timezone settings described in the issue. Compare the configured values with the emitted timestamp, and consider the issue done when the Elasticsearch date is stored and displayed according to the requested format and timezone.

Written by the indexing model from the issue text.

Assessment

Tech stack
elasticsearch, java
Domain
data-engineering, databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.