Pedro Silva
06/01/2021, 10:50 AM{
"columnName": "dateOfBirthMs",
"transformFunction": "fromDateTime(dateOfBirth, 'yyyy-MM-dd''T''HH:mm:ss''Z')"
}
And schema definitions:
"dimensionFieldSpecs": [
,...,
{
"name": "dateOfBirth",
"dataType": "STRING"
},...,
],
"dateTimeFieldSpecs": [
...,
{
"name": "dateOfBirthMs",
"dataType": "LONG",
"format": "1:MILLISECONDS:EPOCH",
"granularity": "1:MILLISECONDS"
}
],
I get this exception:
java.lang.IllegalStateException: Caught exception while invoking method: public static long org.apache.pinot.common.function.scalar.DateTimeFunctions.fromDateTime(java.lang.String,java.lang.String) with arguments: [null, yyyy-MM-dd'T'HH:mm:ss'Z]
I was under the impression that Pinot would not apply the transformation if the input field is null or that the transformation itself would be resilient.
Is there any way around this?Mayank
Pedro Silva
06/01/2021, 2:52 PMPedro Silva
06/01/2021, 2:54 PMfieldX
with default value "default"
, if an incoming message has the following payload:
{
...,
"fieldX": null,
...,
}
What is the expected value in Pinot? null
or "default"