You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Map start_timestamp as date rather than date_nanos (#134350)
A nano precision for the start_timestamp is not necessary. For the `@timestamp` field we're also using date, so this is more consistent with that.
As ES|QL supports auto-casting now, this change should be safe. We also don't expect real-world queries to use this field, yet. In the future, we might use it internally to detect resets.
create logsdb data stream with timestamp mixed date_nanos and date fields:
1149
+
- requires:
1150
+
test_runner_features: [ "allowed_warnings" ]
1151
+
1152
+
- do:
1153
+
cluster.put_component_template:
1154
+
name: "logsdb-mappings"
1155
+
body:
1156
+
template:
1157
+
settings:
1158
+
mode: "logsdb"
1159
+
mappings:
1160
+
properties:
1161
+
host.name:
1162
+
type: "keyword"
1163
+
"@timestamp":
1164
+
type: "date"
1165
+
1166
+
- do:
1167
+
indices.put_index_template:
1168
+
name: "logsdb-index-template"
1169
+
body:
1170
+
index_patterns: ["logsdb"]
1171
+
data_stream: {}
1172
+
composed_of: ["logsdb-mappings"]
1173
+
allowed_warnings:
1174
+
- "index template [logsdb-index-template] has index patterns [logsdb] matching patterns from existing older templates [global] with patterns (global => [*]); this template [logsdb-index-template] will take precedence during new index creation"
0 commit comments