vulcan-sql icon indicating copy to clipboard operation
vulcan-sql copied to clipboard

refreshExpression does not send a SQL request to the backend DB at the specified intervals

Open NithinKumaraNT opened this issue 9 months ago • 3 comments

Environment

  • Version: v0.10.4

  • OS: macOS - x86

What's wrong?

The refreshExpression seems to not function. It does not invalidate the cache and refresh it based on the SQL expression. Backend DB : BigQuery

The following is the example YAML config :

....

sql: |
      SELECT
        *
      FROM
        mytable
    profile: bq
    refreshExpression:
        expression: "MAX(_processed_at)"
        every: "30s"

Please note that just using the refreshTime works without problems.

What's the correct behavior?

A SQL request should be sent every 30 s based on the above config to BigQuery to check and invalidate the cache.

Reproducing steps

NithinKumaraNT avatar May 06 '24 10:05 NithinKumaraNT

Hi @NithinKumaraNT
refreshExpression is not fully implemented yet, you can only use refreshTime for now.

onlyjackfrost avatar May 14 '24 08:05 onlyjackfrost

Hi @onlyjackfrost, If I can ask, when can we expect this feature :) ?

NithinKumaraNT avatar May 14 '24 10:05 NithinKumaraNT

I can't tell, since we are focusing on https://github.com/Canner/WrenAI currently. But I'll take a look maybe this weekend or the next...

If you would like to contribute, I'm glad to guide you through the codebase =D You can pin me on Discord

onlyjackfrost avatar May 15 '24 05:05 onlyjackfrost