changed message_value to get attribute based on msg_index

This commit is contained in:
D0R11 2022-10-12 17:05:15 +08:00
parent df97b59448
commit ce946ffaec
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
{% docs message_value %}
The value of the messages in an array.
The value of the messages based on the index.
{% enddocs %}

View File

@ -15,7 +15,7 @@ WITH txs AS (
VALUE :events AS logs,
VALUE :msg_index :: NUMBER AS message_index,
tx :body :messages [0] :"@type" :: STRING AS message_type,
tx :body :messages AS message_value,
tx :body :messages [message_index] AS message_value,
_ingested_at,
_inserted_timestamp
FROM