Skip to content

Commit

Permalink
Fix INFORMATION_SCHEMA for MV table type (StarRocks#13951)
Browse files Browse the repository at this point in the history
  • Loading branch information
Astralidea authored Nov 24, 2022
1 parent 20f9b2f commit ec4b52c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,6 @@ private static String transferTableTypeToAdaptMysql(TableType tableType) {
case OLAP_EXTERNAL:
return "BASE TABLE";
case MATERIALIZED_VIEW:
return "MATERIALIZED VIEW";
case VIEW:
return "VIEW";
default:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public void testTransferTableTypeToAdaptMysql() throws NoSuchMethodException,
Assert.assertEquals("EXTERNAL TABLE", m.invoke(InformationSchemaDataSource.class, TableType.JDBC));
Assert.assertEquals("BASE TABLE", m.invoke(InformationSchemaDataSource.class, TableType.OLAP));
Assert.assertEquals("BASE TABLE", m.invoke(InformationSchemaDataSource.class, TableType.OLAP_EXTERNAL));
Assert.assertEquals("MATERIALIZED VIEW", m.invoke(InformationSchemaDataSource.class, TableType.MATERIALIZED_VIEW));
Assert.assertEquals("VIEW", m.invoke(InformationSchemaDataSource.class, TableType.MATERIALIZED_VIEW));
Assert.assertEquals("VIEW", m.invoke(InformationSchemaDataSource.class, TableType.VIEW));
Assert.assertEquals("BASE TABLE", m.invoke(InformationSchemaDataSource.class, TableType.SCHEMA));
Assert.assertEquals("BASE TABLE", m.invoke(InformationSchemaDataSource.class, TableType.INLINE_VIEW));
Expand Down

0 comments on commit ec4b52c

Please sign in to comment.