mirror of
https://github.com/apache/superset.git
synced 2026-04-18 23:55:00 +00:00
fix: change naming convention for count metric on Dataset creation (#24609)
This commit is contained in:
@@ -48,7 +48,7 @@ class CreateDatasetCommand(CreateMixin, BaseCommand):
|
||||
dataset = DatasetDAO.create(self._properties, commit=False)
|
||||
|
||||
# Updates columns and metrics from the dataset
|
||||
dataset.metrics = [SqlMetric(metric_name="count", expression="COUNT(*)")]
|
||||
dataset.metrics = [SqlMetric(metric_name="COUNT(*)", expression="COUNT(*)")]
|
||||
|
||||
dataset.fetch_metadata(commit=False)
|
||||
db.session.commit()
|
||||
|
||||
Reference in New Issue
Block a user