Skip to content

detectColumnTypesAndNumberFormats

detectColumnTypesAndNumberFormats(dataRows, columnIDs): object

Detect the SQL types and number formats of the given columns of the given matrix

Matrix

string[]

object

the detected data types (and number formats, when applicable), defaulting to DataType.text if no clear type is found

columnTypes: ("string" | "number" | "boolean" | "datetime" | "date" | "timeofday")[]

numberFormatByColumnIdLower: Map<string, string>