mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 02:44:59 +00:00
FB-2054 - improve create table timestamp column type coverage (#2330)
This commit is contained in:
parent
be4f365eaf
commit
72871e6e5d
1 changed files with 8 additions and 0 deletions
|
|
@ -403,6 +403,13 @@ func TestPlanner_CoverCreateTable(t *testing.T) {
|
|||
constraints: "timequantum 'YMD' ttl '24h' cachetype ranked",
|
||||
expErr: "[1:60] 'TIMEQUANTUM' constraint cannot be applied to a column of type 'stringset'",
|
||||
},
|
||||
// epoch option is not supported. This test expects an error if the option is specified in the create table statement
|
||||
{
|
||||
name: "timestampcol",
|
||||
typ: "timestamp",
|
||||
constraints: "timeunit 's' epoch '2023-03-17T00:00:00Z'",
|
||||
expErr: "1:95: expected column name, or right paren, found 'EPOCH'",
|
||||
},
|
||||
}
|
||||
|
||||
for i, fld := range fields {
|
||||
|
|
@ -459,6 +466,7 @@ func TestPlanner_CoverCreateTable(t *testing.T) {
|
|||
Type: "bool",
|
||||
},
|
||||
},
|
||||
//test creates timestamp column without the epoch and expects the "Base" to be defaulted 0, which is the unix epoch
|
||||
{
|
||||
name: "timestampcol",
|
||||
typ: "timestamp",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue