Empty data set with data types associated with them

Wanted to check if there is a way to create empty data set with data types associated with them, something like below

emptyDS = system.dataset.toDataSet([('col1', Double),('col2', String),('col3', Date)], [])

I am trying to compare templates data set (modifiable by users) with table data set and when a date field is cleared (making that field None) the template data set shows that field type as String while table data set still shows as Date.

FYI, I am using below API to easily compare the data changes

def isDataChanged(tableDataset, templateDataset):
   from com.inductiveautomation.ignition.common.util import DatasetTestUtils
   return DatasetTestUtils.equals(tableDataset, templateDataset)
from com.inductiveautomation.ignition.common.util import DatasetBuilder
from java.lang import String,Double
from java.util import Date
emptyDS = DatasetBuilder.newBuilder().colNames("col1", "col2", "col3").colTypes(Double, String, Date).build()
4 Likes

Thanks Kyle, will give it a try