test_class.declarator: queryResults = new LinkedList<>()
test_class.modifier: private final
test_class.original_string: private final List<QueryResult> queryResults = new LinkedList<>();
test_class.type: List<QueryResult>
test_class.var_name: queryResults
test_class.file: shardingsphere-features/shardingsphere-sharding/shardingsphere-sharding-merge/src/test/java/org/apache/shardingsphere/sharding/merge/dal/ShardingDALResultMergerTest.java
test_class.identifier: ShardingDALResultMergerTest
test_case.body: @Test
      public void assertMergeForShowOtherStatement() throws SQLException {
          DALStatement dalStatement = new MySQLShowOtherStatement();
          SQLStatementContext<?> sqlStatementContext = mockSQLStatementContext(dalStatement);
          ShardingDALResultMerger resultMerger = new ShardingDALResultMerger(null);
          assertThat(resultMerger.merge(queryResults, sqlStatementContext, null), instanceOf(TransparentMergedResult.class));
      }
test_case.class_method_signature: ShardingDALResultMergerTest.assertMergeForShowOtherStatement()
test_case.full_signature: @Test public void assertMergeForShowOtherStatement()
test_case.identifier: assertMergeForShowOtherStatement
test_case.invocations: mockSQLStatementContext assertThat merge instanceOf
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertMergeForShowOtherStatement()
focal_class.declarator: shardingRule
focal_class.modifier: private final
focal_class.original_string: private final ShardingRule shardingRule;
focal_class.type: ShardingRule
focal_class.var_name: shardingRule
focal_class.file: shardingsphere-features/shardingsphere-sharding/shardingsphere-sharding-merge/src/main/java/org/apache/shardingsphere/sharding/merge/dal/ShardingDALResultMerger.java
focal_class.identifier: ShardingDALResultMerger
focal_class.interfaces: implements ResultMerger
focal_class.class_method_signature: ShardingDALResultMerger.merge(final List<QueryResult> queryResults, final SQLStatementContext<?> sqlStatementContext, final SchemaMetaData schemaMetaData)
focal_class.full_signature: @Override public MergedResult merge(final List<QueryResult> queryResults, final SQLStatementContext<?> sqlStatementContext, final SchemaMetaData schemaMetaData)
focal_class.identifier: merge
focal_class.modifiers: @Override public
focal_class.parameters: (final List<QueryResult> queryResults, final SQLStatementContext<?> sqlStatementContext, final SchemaMetaData schemaMetaData)
focal_class.return: MergedResult
focal_class.signature: MergedResult merge(final List<QueryResult> queryResults, final SQLStatementContext<?> sqlStatementContext, final SchemaMetaData schemaMetaData)
focal_method.body: @Override
      public MergedResult merge(final List<QueryResult> queryResults, final SQLStatementContext<?> sqlStatementContext, final SchemaMetaData schemaMetaData) throws SQLException {
          SQLStatement dalStatement = sqlStatementContext.getSqlStatement();
          if (dalStatement instanceof MySQLShowDatabasesStatement) {
              return new SingleLocalDataMergedResult(Collections.singletonList(DefaultSchema.LOGIC_NAME));
          }
          if (dalStatement instanceof MySQLShowTablesStatement || dalStatement instanceof MySQLShowTableStatusStatement || dalStatement instanceof MySQLShowIndexStatement) {
              return new LogicTablesMergedResult(shardingRule, sqlStatementContext, schemaMetaData, queryResults);
          }
          if (dalStatement instanceof MySQLShowCreateTableStatement) {
              return new ShowCreateTableMergedResult(shardingRule, sqlStatementContext, schemaMetaData, queryResults);
          }
          return new TransparentMergedResult(queryResults.get(0));
      }
focal_method.class_method_signature: ShardingDALResultMerger.merge(final List<QueryResult> queryResults, final SQLStatementContext<?> sqlStatementContext, final SchemaMetaData schemaMetaData)
focal_method.full_signature: @Override public MergedResult merge(final List<QueryResult> queryResults, final SQLStatementContext<?> sqlStatementContext, final SchemaMetaData schemaMetaData)
focal_method.identifier: merge
focal_method.invocations: getSqlStatement singletonList get
focal_method.modifiers: @Override public
focal_method.parameters: (final List<QueryResult> queryResults, final SQLStatementContext<?> sqlStatementContext, final SchemaMetaData schemaMetaData)
focal_method.return: MergedResult
focal_method.signature: MergedResult merge(final List<QueryResult> queryResults, final SQLStatementContext<?> sqlStatementContext, final SchemaMetaData schemaMetaData)