mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 02:44:59 +00:00
For on-prem serverless, if we restart the process containing the controller and computer(s), when they come back up, the controller doesn't know that the computers have been restarted, so it doesn't send them a directive. This change forces the controller to send a directive upon startup by a computer.
44 lines
1.1 KiB
Go
44 lines
1.1 KiB
Go
package defs
|
|
|
|
var minmaxnegatives = TableTest{
|
|
name: "minmaxnegatives",
|
|
Table: tbl(
|
|
"minmaxnegatives",
|
|
srcHdrs(
|
|
srcHdr("_id", fldTypeID),
|
|
srcHdr("positive_int", fldTypeInt, "min 10", "max 100"),
|
|
srcHdr("negative_int", fldTypeInt, "min -100", "max -10"),
|
|
),
|
|
srcRows(
|
|
srcRow(int64(1), int64(11), int64(-11)),
|
|
srcRow(int64(2), int64(22), int64(-22)),
|
|
srcRow(int64(3), int64(33), int64(-33)),
|
|
),
|
|
),
|
|
SQLTests: []SQLTest{
|
|
{
|
|
// Select all.
|
|
name: "select-all",
|
|
SQLs: sqls(
|
|
"select * from minmaxnegatives",
|
|
),
|
|
ExpHdrs: hdrs(
|
|
hdr("_id", fldTypeID),
|
|
hdr("positive_int", fldTypeInt),
|
|
hdr("negative_int", fldTypeInt),
|
|
),
|
|
ExpRows: rows(
|
|
row(int64(1), int64(21), int64(-21)),
|
|
row(int64(2), int64(32), int64(-32)),
|
|
row(int64(3), int64(43), int64(-43)),
|
|
// TODO(tlt): this test did not exist, and the values coming
|
|
// back are incorrect. We need to fix this test based on the
|
|
// correct results below:
|
|
// row(int64(1), int64(11), int64(-11)),
|
|
// row(int64(2), int64(22), int64(-22)),
|
|
// row(int64(3), int64(33), int64(-33)),
|
|
),
|
|
Compare: CompareExactOrdered,
|
|
},
|
|
},
|
|
}
|