Comments (11)
@Nick-S-2018 pls check what timezone ES uses when it's not provided, e.g.:
2019-03-23T21:34:46
You also wanted to add more examples with timezones.
from manticoresearch.
In such case, ES uses the UTC time without setting any default time zone.
I've added the examples with string time zones to the format list above.
from manticoresearch.
This issue blocks manticoresoftware/buddy-plugin-insert#6
from manticoresearch.
To think through:
- support
timestamp64
andtimestamp
vs changingtimestamp
to always be bigint - there's another related issue about storing datetime formats
from manticoresearch.
After moving from ES to Manticore, this is by far the biggest hurdle we had to take during migration.
Would be nice if the auto-detection could be implemented.
from manticoresearch.
Here is the list of date formats that are auto detected by Elastic:
yyyy-MM-ddTHH:mm:ss.SSSZ
2019-03-23T21:34:46.123-04:00
2019-03-23T21:34:46Asia/Novosibirsk
yyyy-MM-dd'T'HH:mm:ssZ
2019-03-23T21:34:46-04:00
2019-03-23T21:34:46Asia/Novosibirsk
yyyy-MM-ddTHH:mm:ss.S+
2019-03-23T21:34:46.1234567
yyyy-MM-ddTHH:mm:ss
2019-03-23T21:34:46
yyyy-MM-ddTHH:mm
2019-03-23T21:34
yyyy-MM-ddTHH
2019-03-23T21
yyyy-MM-dd
2019-03-23
yyyy-MM
2019-03
but we also should support plain timestamp string along with these that allow to remove @timestamp
constraint on conversion from the string
- need also to bench the speed of that list of conversions
- need to add string to timestamp conversion into plain index sources
from manticoresearch.
we also should support plain timestamp string
Yes, and what's called epoch_millis
in Elasticsearch too since Logstash / Beats etc. can output logs in this format. As discussed, it's ok to cast that to int for now.
from manticoresearch.
added list of the date formats for timestamp fields along with conversion of string for any timestamp attribute at 973703b
from manticoresearch.
the benchmark of the conversion on insert data (batch of 10 documents) into RT table with timestamp attribute
insert data | laptop qps | linux qps |
---|---|---|
ins_tm_num.sql | 9365.5 | 1513.8 |
ins_tm_num_str.sql | 9306.8 | 1497.3 |
ins_tm_str2.sql | 9009.5 | 1484.0 |
ins_tm_str1.sql | 8759.8 | 1350.0 |
ins_tm_str_data.sql | 5850.6 | 941.8 |
ins_tm_num.sql
replace into t (id, tid) values (10,1568577600), ...
- here is data population of the timestamp integer without any conversion
ins_tm_num_str.sql
replace into t (id, tid) values (10,'1568577600'), ...
- here is data population of the timestamp with conversion of the timestamp from the string value
ins_tm_str2.sql
replace into t (id, tid) values (10,'2019'), ...
ins_tm_str1.sql
replace into t (id, tid) values (10,'2019-10-15T20:00:00'), ...
- here are data population of the timestamp with conversion of the timestamp from the string value with scan of the formats to find one that fits the data string
ins_tm_str_data.sql
replace into t (id, tid, title) values (10,'2019-10-15T20:00:00', 'Lorem ipsum dolor sit amet ...
- here are data population of the timestamp with conversion of the timestamp from the string value with scan of the formats to find one that fits the data string and also has short (128 chars) text data
seems conversion from the string is slower than use integer timestamp however it should not be noticeable while inserting the real data along with timestamp attributes
from manticoresearch.
documented conversion at the manual 33dc37f
from manticoresearch.
this issue was fixed but the development will continue at
- #2156 for plain index data source conversion
- #421
- https://github.com/manticoresoftware/dev/issues/476
- for timestamp64 or custom data format for conversion
from manticoresearch.
Related Issues (20)
- Thai chars are in the wrong charsets HOT 9
- Treating document IDs as numbers in /search responses HOT 4
- Daemon crashes on _search request from Kibana HOT 1
- Fix json escaping for mysqldump HOT 2
- Make it possible to heal from dupes in a disk chunk HOT 3
- Search by JSON keys works incorrectly HOT 4
- Possible issue with Buddy on Windows HOT 6
- buddy can not work at Windows if listen is 127.0.0.1 HOT 5
- WARNING: wordlist size mismatch (size=18, checkpoints=0) HOT 3
- Crash if I use an SQL with a reserved word HOT 4
- Escape is not working for HTTP and SQL HOT 4
- IDF calculation issue
- Extended quote and double quote functionality
- Show correct data types in /cli_json HOT 2
- Escaping in wordforms and exceptions HOT 4
- Problem with using > HOT 1
- Error: GPG check FAILED when installing in platform linux/arm64 image almalinux:9 HOT 7
- Non exist chunk crash
- Can't import table with wordforms HOT 10
- plain index needs autodetection of date formats for timestamp fields
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from manticoresearch.