-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
zhouxin2333 opened DATAES-953 and commented
Here is entity field
!image-2020-10-15-19-44-45-701.png!
Without any other configuration, I can write it to Elasticsearch, but I can't read. The following exception occurred
!image-2020-10-15-19-49-17-907.png!
The whole stack is in there: [^exception stack.txt]
By the way, I think the problem is in 'ElasticsearchDateConverter.parse(String)'
!image-2020-10-15-19-54-58-421.png!
Instant can‘t use the result of 'dateFormatter.parse(input)' as a parameter to execute the from method. It should just like 'JavaDateFormatter.format' do.
!image-2020-10-15-19-57-43-121.png!
Convert TemporalAccessor to ZonedDateTime by 'DateFormatters.from' , and then Instant.from(ZonedDateTime).
'ElasticsearchDateConverter.parse(String)' is modified as follows
!image-2020-10-15-20-00-59-501.png!
The above is my opinion, I hope the problem can be solved. Thank you!
Affects: 4.0.4 (Neumann SR4), 4.1 RC2 (2020.0.0)
Attachments:
- exception stack_instant.txt (12.05 kB)
- exception stack_uuuu.txt (11.43 kB)
- exception stack.txt (11.46 kB)
- image-2020-10-15-19-44-45-701.png (12.24 kB)
- image-2020-10-15-19-49-05-283.png (58.46 kB)
- image-2020-10-15-19-49-17-907.png (58.46 kB)
- image-2020-10-15-19-54-58-421.png (12.24 kB)
- image-2020-10-15-19-57-43-121.png (12.60 kB)
- image-2020-10-15-20-00-59-501.png (14.89 kB)
- image-2020-10-15-22-53-51-462.png (66.99 kB)
- image-2020-10-15-23-02-07-035.png (11.01 kB)
- image-2020-10-15-23-12-46-126.png (13.65 kB)
- image-2020-10-15-23-13-11-599.png (58.67 kB)
Referenced from: pull request #538
Backported to: 4.0.5 (Neumann SR5)