Fixed "Ensure no file change" build issue. Only checkstyle changes, no logic chnages (#17885)
This commit is contained in:
@@ -128,8 +128,8 @@ public class MongoDbSource extends AbstractDbSource<BsonType, MongoDatabase> {
|
||||
*/
|
||||
try {
|
||||
final Document document = database.getDatabase().runCommand(new Document("listCollections", 1)
|
||||
.append("authorizedCollections", true)
|
||||
.append("nameOnly", true))
|
||||
.append("authorizedCollections", true)
|
||||
.append("nameOnly", true))
|
||||
.append("filter", "{ 'type': 'collection' }");
|
||||
return document.toBsonDocument()
|
||||
.get("cursor").asDocument()
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
/*
|
||||
* Copyright (c) 2022 Airbyte, Inc., all rights reserved.
|
||||
*/
|
||||
|
||||
package io.airbyte.integrations.source.mongodb;
|
||||
|
||||
import static org.bson.BsonType.DATE_TIME;
|
||||
@@ -40,4 +44,5 @@ public final class MongoDbSourceUtils {
|
||||
return config.has(JdbcUtils.TLS_KEY) ? config.get(JdbcUtils.TLS_KEY).asBoolean()
|
||||
: (instanceConfig.has(JdbcUtils.TLS_KEY) ? instanceConfig.get(JdbcUtils.TLS_KEY).asBoolean() : true);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -17,8 +17,8 @@ import io.airbyte.db.mongodb.MongoDatabase;
|
||||
import io.airbyte.integrations.source.mongodb.MongoDbSource;
|
||||
import io.airbyte.integrations.standardtest.source.TestDestinationEnv;
|
||||
import io.airbyte.protocol.models.AirbyteCatalog;
|
||||
import io.airbyte.protocol.models.AirbyteStream;
|
||||
import io.airbyte.protocol.models.AirbyteConnectionStatus;
|
||||
import io.airbyte.protocol.models.AirbyteStream;
|
||||
import io.airbyte.protocol.models.CatalogHelpers;
|
||||
import io.airbyte.protocol.models.Field;
|
||||
import io.airbyte.protocol.models.JsonSchemaType;
|
||||
|
||||
Reference in New Issue
Block a user