I am getting date in this format, used the followi...
# troubleshooting
f
I am getting date in this format, used the following schema configuration: "name": "dispatch_date", "dataType": "STRING" With timestamp, it doesn't work.
m
What does the date time field spec look like?
f
Copy code
"dimensionFieldSpecs": [
    {
      "name": "dispatch_date",
      "dataType": "STRING"
    }
h
f
The job isn't triggered if I change format.
m
Seems like you specified it as dimension and not time?
f
So type will be datetime and fieldtype will be?
Is logging enabled in pinot? How can I debug and check errors?
h
do you intend to make it a dimension field or date time field?
f
I want date, in my file the format is yyyy-MM-dd so I want date will late use it in join.
h
could you try to follow the link to make it a dateTimeField?
f
I tried, even used this, still didn't work
Copy code
{
  "schemaName": "metrics",
  "dateTimeFieldSpecs": [
    {
      "name": "dispatch_date",
      "dataType": "LONG",
      "format": "1:DAYS:SIMPLE_DATE_FORMAT:yyyy-MM-dd",
      "granularity": "1:DAYS"
    }
  ]
}
h
I guess your value does not follow the format "format": "1DAYSSIMPLE_DATE_FORMAT:yyyy-MM-dd",
I see your value is 19125 but not yyyy-MM-dd
f
No it's coming but original date is in this format in file. When I do it as string, it comes this way.
h
could you please try
Copy code
{
  "schemaName": "metrics",
  "dateTimeFieldSpecs": [
    {
      "name": "dispatch_date",
      "dataType": "STRING",
      "format": "1:DAYS:SIMPLE_DATE_FORMAT:yyyy-MM-dd",
      "granularity": "1:DAYS"
    }
  ]
}
f
But unable to fetch only date
h
I guess maybe I have some misunderstanding here. Could you please share one example date value in your source file?
f
2020-05-18 as date