Skip to content
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

Add refresh_sql to dataset acceleration #1073

Merged
merged 57 commits into from Apr 12, 2024
Merged

Add refresh_sql to dataset acceleration #1073

merged 57 commits into from Apr 12, 2024

Conversation

lukekim
Copy link
Contributor

@lukekim lukekim commented Apr 10, 2024

Part of #1056

Add a refresh_sql that will be evaluated when refreshing the accelerated table to filter the data that is accelerated.

datasets:
  - from: spice.ai/eth.recent_blocks
    name: eth_recent_blocks
    acceleration:
       enabled: true
       refresh_mode: full
       refresh_interval: 1m
       refresh_sql: |
          SELECT * FROM eth_recent_blocks WHERE number > 15000000

@lukekim lukekim requested a review from a team as a code owner April 10, 2024 22:49
@lukekim lukekim self-assigned this Apr 10, 2024
@lukekim lukekim marked this pull request as draft April 10, 2024 22:50
@lukekim lukekim added the kind/enhancement New feature or request label Apr 10, 2024
@lukekim lukekim added this to the v0.11-alpha milestone Apr 10, 2024
@lukekim lukekim linked an issue Apr 10, 2024 that may be closed by this pull request
1 task
Base automatically changed from phillip/240320-rearch-2 to trunk April 11, 2024 03:31
@phillipleblanc phillipleblanc marked this pull request as ready for review April 11, 2024 15:17
phillipleblanc
phillipleblanc previously approved these changes Apr 11, 2024
@lukekim lukekim enabled auto-merge (squash) April 12, 2024 02:28
@lukekim lukekim merged commit 9438e29 into trunk Apr 12, 2024
16 checks passed
@lukekim lukekim deleted the lukim/refresh-sql-2 branch April 12, 2024 02:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enhancement: Custom refresh SQL
3 participants