databricks-sql-python icon indicating copy to clipboard operation
databricks-sql-python copied to clipboard

Only cache result used even source data changed

Open pdscodes opened this issue 3 years ago • 0 comments

I found s strange issue that only cached result is returned when using python SQL. I am testing the same query in a time span of one hour and the same result returns from the cache. The source data is changed during this time.

Exact same query works fine and returns a new result in SQL data warehouse UI SQL editor (I actually copied the query sent from API from query history)

image

I end up run this one to clear cache manually: cursor.execute("SET use_cached_result = false")

pdscodes avatar Jul 14 '22 02:07 pdscodes