mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 10:54:59 +00:00
adding table column for types
This commit is contained in:
parent
9413c32d10
commit
0abd7f3f1f
2 changed files with 9 additions and 2 deletions
|
|
@ -17,8 +17,8 @@ import (
|
|||
// exclude this file from SonarCloud dupe eval
|
||||
|
||||
const (
|
||||
fbDatabaseInfo = "fb_database_info"
|
||||
fbDatabaseNodes = "fb_database_nodes"
|
||||
fbDatabaseInfo = "fb_database_info"
|
||||
fbDatabaseNodes = "fb_database_nodes"
|
||||
fbExecRequests = "fb_exec_requests"
|
||||
fbPerformanceCounters = "fb_performance_counters"
|
||||
|
||||
|
|
@ -86,6 +86,11 @@ var systemTables = map[string]*systemTable{
|
|||
ColumnName: "id",
|
||||
Type: parser.NewDataTypeString(),
|
||||
},
|
||||
&types.PlannerColumn{
|
||||
RelationName: fbDatabaseNodes,
|
||||
ColumnName: "type",
|
||||
Type: parser.NewDataTypeString(),
|
||||
},
|
||||
&types.PlannerColumn{
|
||||
RelationName: fbDatabaseNodes,
|
||||
ColumnName: "state",
|
||||
|
|
@ -390,6 +395,7 @@ func (i *fbDatabaseNodesRowIter) Next(ctx context.Context) (types.Row, error) {
|
|||
n := i.result[0]
|
||||
row := []interface{}{
|
||||
n.ID,
|
||||
"types!",
|
||||
n.State,
|
||||
n.URI,
|
||||
n.GRPCURI,
|
||||
|
|
|
|||
|
|
@ -185,6 +185,7 @@ func TestPlanner_Show(t *testing.T) {
|
|||
|
||||
if diff := cmp.Diff([]*pilosa.WireQueryField{
|
||||
wireQueryFieldString("id"),
|
||||
wireQueryFieldString("type"),
|
||||
wireQueryFieldString("state"),
|
||||
wireQueryFieldString("uri"),
|
||||
wireQueryFieldString("grpc_uri"),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue