Skip to content

Conversation

@soyeric128
Copy link
Contributor

@soyeric128 soyeric128 commented Apr 9, 2025

This PR updated LAST_QUERY_ID with detailed explanations and examples.

Just refactored the document for LAST_QUERY_ID based on my own test results. Key updates includes that the functions accepts both positives & negatives, and how the queries in a session are indexed in either way:

Positive Negative
SELECT 1 1 -4
SELECT 2 2 -3
SELECT 3 3 -2
SELECT LAST_QUERY_ID(-2), LAST_QUERY_ID(3) 4 -1

@vercel
Copy link

vercel bot commented Apr 9, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
databend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 9, 2025 11:07pm

@soyeric128 soyeric128 linked an issue Apr 9, 2025 that may be closed by this pull request
@soyeric128 soyeric128 requested review from BohuTANG and sundy-li April 9, 2025 23:09
@soyeric128 soyeric128 added the databend monthly This PR goes to Databend Monthly label Apr 9, 2025
@soyeric128 soyeric128 merged commit ea6a470 into main Apr 10, 2025
4 checks passed
@soyeric128 soyeric128 deleted the LAST_QUERY_ID branch April 10, 2025 02:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

databend monthly This PR goes to Databend Monthly

Projects

None yet

Development

Successfully merging this pull request may close these issues.

doc: query result cache

3 participants