We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5254f5 commit 7cab7e3Copy full SHA for 7cab7e3
pioreactorui/api.py
@@ -1059,11 +1059,7 @@ def preview_exportable_datasets(target_dataset) -> ResponseReturnValue:
1059
try:
1060
dataset = yaml_decode(file.read_bytes(), type=Dataset)
1061
if dataset.dataset_name == target_dataset:
1062
- subquery = f"SELECT rowid FROM ({dataset.table or dataset.query}) ORDER BY RANDOM() LIMIT {n_rows}"
1063
- query = (
1064
- f"SELECT * FROM ({dataset.table or dataset.query}) WHERE rowid in ({subquery});"
1065
- )
1066
- publish_to_log(query, "test")
+ query = f"SELECT * FROM ({dataset.table or dataset.query}) LIMIT {n_rows};"
1067
result = query_app_db(query)
1068
return jsonify(result)
1069
except (ValidationError, DecodeError):
0 commit comments