Merge pull request #68 from FlipsideCrypto/transaction-case-when-fix

update tx
This commit is contained in:
Austin 2025-04-17 13:43:15 -04:00 committed by GitHub
commit 27b16a4775
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -35,6 +35,8 @@ SELECT
s,
v,
transactions_id AS fact_transactions_id,
block_hash, --deprecate
POSITION, --deprecate
{% if is_incremental() %}
SYSDATE() AS inserted_timestamp,
SYSDATE() AS modified_timestamp
@ -44,8 +46,6 @@ SELECT
CASE WHEN block_timestamp >= date_trunc('hour',SYSDATE()) - interval '4 hours' THEN SYSDATE()
ELSE GREATEST(block_timestamp, dateadd('day', -10, SYSDATE())) END AS modified_timestamp
{% endif %}
block_hash, --deprecate
POSITION --deprecate
FROM
{{ source(
'klaytn_silver',