fix(grid): bound large table previews by byte budget

This commit is contained in:
zipg authored and GitHub committed 2026-08-13 13:25:04 +08:00
1 parent 020654c33c
commit e85d3dcc59
19 files changed
+823 -23

No files matched your search

+4
View File
@@ -24,6 +24,8 @@ pub struct ExecuteQueryRequest {
pub max_result_bytes: Option<usize>,
#[serde(default)]
pub result_key_columns: Vec<String>,
#[serde(default)]
pub table_data_preview: bool,
pub result_session_id: Option<String>,
pub client_session_id: Option<String>,
pub timeout_secs: Option<u64>,
@@ -363,6 +365,7 @@ pub async fn execute_query(
page_size: req.page_size,
max_result_bytes: req.max_result_bytes,
result_key_columns: req.result_key_columns,
table_data_preview: req.table_data_preview,
catalog: req.catalog,
result_session_id: req.result_session_id,
client_session_id: req.client_session_id,
@@ -411,6 +414,7 @@ pub async fn execute_multi(
page_size: req.page_size,
max_result_bytes: req.max_result_bytes,
result_key_columns: req.result_key_columns,
table_data_preview: req.table_data_preview,
catalog: req.catalog,
result_session_id: req.result_session_id,
client_session_id: req.client_session_id,