mirror of
https://github.com/FlipsideCrypto/ethereum-models.git
synced 2026-02-06 13:17:06 +00:00
parent
0a36e48543
commit
e58ebbacc9
@ -135,7 +135,12 @@
|
||||
AND trace_address != 'ORIGIN' THEN trace_address || '_'
|
||||
ELSE NULL
|
||||
END AS parent_of,
|
||||
IFF(REGEXP_REPLACE(trace_address, '.$', '') = '', 'ORIGIN', REGEXP_REPLACE(trace_address, '.$', '')) AS child_of,
|
||||
IFF(REGEXP_REPLACE(trace_address, '[0-9]+$', '') = '', 'ORIGIN', REGEXP_REPLACE(trace_address, '[0-9]+$', '')) AS child_of_raw,
|
||||
IFF(
|
||||
trace_address = 'ORIGIN',
|
||||
'ORIGI',
|
||||
child_of_raw
|
||||
) AS child_of,
|
||||
input,
|
||||
output,
|
||||
concat_ws(
|
||||
|
||||
@ -39,8 +39,8 @@ WITH look_back AS (
|
||||
AND trace_address != 'ORIGIN' THEN trace_address || '_'
|
||||
ELSE NULL
|
||||
END AS parent_of,
|
||||
IFF(REGEXP_REPLACE(trace_address, '.$', '') = '', 'ORIGIN', REGEXP_REPLACE(trace_address, '.$', '')) AS child_of,
|
||||
|
||||
IFF(REGEXP_REPLACE(trace_address, '[0-9]+$', '') = '', 'ORIGIN', REGEXP_REPLACE(trace_address, '[0-9]+$', '')) AS child_of_raw,
|
||||
iff(trace_address = 'ORIGIN', 'ORIGI', child_of_raw) as child_of,
|
||||
input,
|
||||
output,
|
||||
concat_ws(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user