mirror of
https://github.com/dolthub/dolt.git
synced 2026-03-05 00:44:00 -06:00
Removed Full-Text tables from 'schema show'
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user