-
Notifications
You must be signed in to change notification settings - Fork 13
Live Table UDTF's #449
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
ShahNewazKhan
wants to merge
19
commits into
main
Choose a base branch
from
STREAM-1089/live-table-udtf
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Live Table UDTF's #449
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
forgxyz
approved these changes
Apr 30, 2025
Let's create a 2nd Near endpoint on Quicknode for the livetable workflow to easily segment call volume metrics |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR ports over
Live Table
UDTF's fromlivequery-models
due to the collisions of bronze layer models across projects ( exbronze__blocks, bronze__transactions etc
existing inevm, aptos & near
).The
Live Table
UDTF
's are designed to retrieve data live from Near nodes to fill the gap between current chain head and the Near data batch ingested via Streamline.The following
Live Table
UDTF
's have been created:livetable.tf_fact_blocks
livetable.tf_fact_transaction
livetable.tf_fact_receipts
livetable.tf_ez_actions
We use the livequery_base.get_rendered_model() macro to reuse the transformation applied in the gold/silver models and override the bronze layer models. In order to do so we need to materialize the gold/silver layer as ephemeral models, we achieve this via the model's config block with a conditional materialization:
For the bronze layer override we use the
ENABLE_LIVE_TABLE
conditional to render theLive Table
RPC logic or the default batch logic.In addition to the above, this PR add's the following:
blocks,tx,chunks
specificudf_api
's to enable granular throughput tuning