You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you execute a query in the DuckDB pane of the object page and then change the underlying object, if you re-execute the query the results don't change.
Get a duckDB CLI prompt docker exec -it duckdb duckdb
Load the parquet file as a table, delete some rows, and write it back to lakeFS
SET s3_endpoint='lakefs:8000';
SET s3_access_key_id='AKIA-EXAMPLE-KEY';
SET s3_secret_access_key='EXAMPLE-SECRET';
SET s3_url_style='path';
SET s3_region='us-east-1';
SET s3_use_ssl=false;
CREATETABLElakesASselect*from read_parquet('s3://quickstart/main/lakes.parquet');
DELETEFROM lakes WHERE country !='Denmark';
COPY lakes TO 's3://quickstart/main/lakes.parquet' (FORMAT 'PARQUET', ALLOW_OVERWRITE TRUE);
Read the parquet file back directly to verify the change to the data:
In the same browser window as before, click Execute. Note that the data does not change. Even if you change the value on the LIMIT clause (e.g. from 20 to 5) the new data is not shown.
Refresh the web page using the browser's controls and note that the correct data is now shown.
CleanShot.2023-03-15.at.16.18.19-converted.mp4
Expected Behavior
When you run a query with DuckDB it should show the current data in the file.
If it is not going to do this then the UI should indicate very clearly that the data could be stale and have a button to force a refresh of it without requiring the user to reload the page (and thus lose their SQL query)
lakeFS Version
0.96.1
Deplyoment
Docker
Affected Clients
No response
Relevant logs output
No response
Contact Details
No response
The text was updated successfully, but these errors were encountered:
Looks like this was done here: #4903. There is a trade-off between performance and data-freshness here and we decided to side with performance. However I agree that having no way to refresh the data is a problem.
What happened?
Current Behavior:
When you execute a query in the DuckDB pane of the object page and then change the underlying object, if you re-execute the query the results don't change.
Steps to Reproduce:
Get a duckDB CLI prompt
docker exec -it duckdb duckdb
Load the parquet file as a table, delete some rows, and write it back to lakeFS
Read the parquet file back directly to verify the change to the data:
In the same browser window as before, click
Execute
. Note that the data does not change. Even if you change the value on theLIMIT
clause (e.g. from 20 to 5) the new data is not shown.Refresh the web page using the browser's controls and note that the correct data is now shown.
CleanShot.2023-03-15.at.16.18.19-converted.mp4
Expected Behavior
When you run a query with DuckDB it should show the current data in the file.
If it is not going to do this then the UI should indicate very clearly that the data could be stale and have a button to force a refresh of it without requiring the user to reload the page (and thus lose their SQL query)
lakeFS Version
0.96.1
Deplyoment
Docker
Affected Clients
No response
Relevant logs output
No response
Contact Details
No response
The text was updated successfully, but these errors were encountered: