archon gum created NIFI-6435:
--------------------------------
Summary: ConvertAvroToORC Should support Date and Timestamp type
Key: NIFI-6435
URL: https://issues.apache.org/jira/browse/NIFI-6435
Project: Apache NiFi
Issue Type: Improvement
Components: Core Framework
Reporter: archon gum
h1. From AVRO
data
{code:java}
{
"date_type": 17897, // 2019-01-01
"timestamp_type": 1546300800000 // 2019-01-01 00:00:00 +0000
}
{code}
schema
{code:java}
{
"name": "test_types",
"type": "record",
"fields": [
{
"name": "date_type",
"type": "int",
"logicalType": "date"
},
{
"name": "timestamp_type",
"type": "long",
"logicalType": "timestamp-millis" // or others
}
]
}
{code}
h1. To ORC
schema should be
{code:java}
struct<date_type:date, timestamp_type:timestamp>
{code}
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)