Removed Full-Text tables from 'schema show'

This commit is contained in:
Daylon Wilkins
2023-08-17 11:22:03 -07:00
parent 80e1a646b0
commit 403aeba375
2 changed files with 12 additions and 0 deletions

View File

@@ -142,6 +142,9 @@ func printSchemas(ctx context.Context, apr *argparser.ArgParseResults, dEnv *env
var notFound []string
for _, tblName := range tables {
if doltdb.IsFullTextTable(tblName) {
continue
}
ok, err := root.HasTable(ctx, tblName)
if err != nil {
return errhand.BuildDError("unable to get table '%s'", tblName).AddCause(err).Build()

View File

@@ -355,3 +355,12 @@ teardown() {
[[ "$output" =~ "test_abc" ]] || false
[[ ! "$output" =~ "dolt_" ]] || false
}
@test "fulltext: psuedo-index tables do not show in dolt schema show" {
dolt sql -q "CREATE TABLE test_abc (pk BIGINT UNSIGNED PRIMARY KEY, v1 VARCHAR(200), FULLTEXT idx (v1));"
run dolt schema show
[ "$status" -eq 0 ]
[[ "$output" =~ "test_abc" ]] || false
[[ ! "$output" =~ "dolt_" ]] || false
}