data sample fix for datasets page

This commit is contained in:
dal 2025-04-22 08:04:58 -06:00
parent c1b29dafec
commit 53b9f606da
No known key found for this signature in database
GPG Key ID: 16F4B0E1E9F61122
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ async fn get_dataset_data_sample_handler(
let schema = dataset.schema.clone();
let database_name = dataset.database_name.clone();
let sql = format!("SELECT * FROM {}.{} LIMIT 25", schema, database_name);
match query_engine(dataset_id, &sql, None).await {
match query_engine(&dataset.data_source_id, &sql, None).await {
Ok(data) => data.data,
Err(e) => {
tracing::error!("Error getting dataset data: {:?}", e);