fix: change naming convention for count metric on Dataset creation (#24609)
This commit is contained in:
parent
a6e749da87
commit
c573cfcd12
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue