dim_calendar.avsc 1.06 KB
Newer Older
wang-jinfeng committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
{
    "type": "record",
    "name": "Calendar",
    "separatorChar": "\t",
    "fields": [
        {
            "name": "long_dt",
            "type": "string",
            "doc": "date, yyyy-MM-dd"
        },
        {
            "name": "short_dt",
            "type": "string",
            "doc": "date yyyyMMdd"
        },
        {
            "name": "year",
            "type": "string",
            "doc": "year"
        },
        {
            "name": "month",
            "type": "string",
            "doc": "month"
        },
        {
            "name": "day",
            "type": "string",
            "doc": "day"
        },
        {
            "name": "hour",
            "type": "string",
            "doc": "hour"
        },
        {
            "name": "week",
            "type": "int",
            "doc": "星期"
        },
        {
            "name": "quarter",
            "type": "string",
            "doc": "季度"
        },
        {
            "name": "holiday",
            "type": "string",
            "doc": "节假日"
        }
    ]
}