Merge pull request #211 from buster-so/staging

data sample fix for datasets page
This commit is contained in:
dal 2025-04-22 07:05:21 -07:00 committed by GitHub
commit e04a4d6916
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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);