add transaction version col (#127)

This commit is contained in:
desmond-hui 2022-10-12 10:20:49 -07:00 committed by GitHub
parent fd46fe1779
commit 7875c613b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View File

@ -28,6 +28,7 @@ WITH pre_final AS (
t.data :transaction :message :instructions :: ARRAY AS instructions,
t.data :meta :innerInstructions :: ARRAY AS inner_instructions,
t.data :meta :logMessages :: ARRAY AS log_messages,
t.data :version :: STRING as version,
t._partition_id,
t._inserted_timestamp
FROM
@ -88,6 +89,7 @@ prev_null_block_timestamp_txs AS (
t.instructions,
t.inner_instructions,
t.log_messages,
t.version,
t._partition_id,
GREATEST(
t._inserted_timestamp,
@ -120,6 +122,7 @@ SELECT
instructions,
inner_instructions,
log_messages,
version,
_partition_id,
_inserted_timestamp
FROM

View File

@ -50,6 +50,8 @@ models:
description: List of post-transaction token balances for different token accounts
- name: LOG_MESSAGES
description: Array of log messages written by the program for this transaction
- name: VERSION
description: Transaction version, legacy version is listed as NULL or 'legacy'
- name: _INSERTED_TIMESTAMP
description: "{{ doc('_inserted_timestamp') }}"
tests: