mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 02:44:59 +00:00
include space_used column in show table output (#2401)
(cherry picked from commit 4750c2215f)
This commit is contained in:
parent
2b9c13497e
commit
3b1707c568
2 changed files with 8 additions and 1 deletions
|
|
@ -65,8 +65,14 @@ func (p *ExecutionPlanner) compileShowTablesStatement(stmt parser.Statement) (ty
|
|||
},
|
||||
&qualifiedRefPlanExpression{
|
||||
tableName: "fb_tables",
|
||||
columnName: "description",
|
||||
columnName: "space_used",
|
||||
columnIndex: 7,
|
||||
dataType: parser.NewDataTypeInt(),
|
||||
},
|
||||
&qualifiedRefPlanExpression{
|
||||
tableName: "fb_tables",
|
||||
columnName: "description",
|
||||
columnIndex: 8,
|
||||
dataType: parser.NewDataTypeString(),
|
||||
}}
|
||||
|
||||
|
|
|
|||
|
|
@ -177,6 +177,7 @@ func TestPlanner_Show(t *testing.T) {
|
|||
wireQueryFieldTimestamp("created_at"),
|
||||
wireQueryFieldTimestamp("updated_at"),
|
||||
wireQueryFieldBool("keys"),
|
||||
wireQueryFieldInt("space_used"),
|
||||
wireQueryFieldString("description"),
|
||||
}, columns); diff != "" {
|
||||
t.Fatal(diff)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue