mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-10-07 11:27:50 +00:00
adding test avro to PDK for recordTime
This commit is contained in:
parent
bf37dfa9ba
commit
864c6ad4e7
1 changed files with 13 additions and 0 deletions
|
|
@ -226,6 +226,19 @@ func TestAvroToPDKField(t *testing.T) {
|
|||
expField: idk.IDField{NameVal: "int-ttl"},
|
||||
expErr: "nil",
|
||||
},
|
||||
{
|
||||
name: "recordTime",
|
||||
schemaField: &avro.SchemaField{
|
||||
Name: "record-time",
|
||||
Type: &avro.BytesSchema{},
|
||||
Properties: map[string]interface{}{
|
||||
"layout": "2006-01-02 15:04:05",
|
||||
"fieldType": "recordTime",
|
||||
},
|
||||
},
|
||||
expField: idk.RecordTimeField{NameVal: "record-time", Layout: "2006-01-02 15:04:05"},
|
||||
expErr: "nil",
|
||||
},
|
||||
}
|
||||
|
||||
for _, test := range tests {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue