update all connectors for new CDK version and more stringent javac checks
This commit is contained in:
@@ -36,16 +36,15 @@ public class MySqlQueryUtils {
|
||||
|
||||
public record TableSizeInfo(Long tableSize, Long avgRowLength) {}
|
||||
|
||||
public static final String TABLE_ESTIMATE_QUERY =
|
||||
"""
|
||||
SELECT
|
||||
(data_length + index_length) as %s,
|
||||
AVG_ROW_LENGTH as %s
|
||||
FROM
|
||||
information_schema.tables
|
||||
WHERE
|
||||
table_schema = '%s' AND table_name = '%s';
|
||||
""";
|
||||
public static final String TABLE_ESTIMATE_QUERY = """
|
||||
SELECT
|
||||
(data_length + index_length) as %s,
|
||||
AVG_ROW_LENGTH as %s
|
||||
FROM
|
||||
information_schema.tables
|
||||
WHERE
|
||||
table_schema = '%s' AND table_name = '%s';
|
||||
""";
|
||||
|
||||
public static final String MAX_PK_VALUE_QUERY =
|
||||
"""
|
||||
@@ -84,7 +83,7 @@ public class MySqlQueryUtils {
|
||||
return storageEngines;
|
||||
} catch (final Exception e) {
|
||||
LOGGER.info("Storage engines could not be determined");
|
||||
return Collections.EMPTY_SET;
|
||||
return Collections.emptySet();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -10,7 +10,6 @@ import static io.airbyte.cdk.integrations.debezium.DebeziumIteratorConstants.SYN
|
||||
import com.fasterxml.jackson.databind.JsonNode;
|
||||
import com.google.common.annotations.VisibleForTesting;
|
||||
import com.mysql.cj.MysqlType;
|
||||
import io.airbyte.cdk.db.JdbcCompatibleSourceOperations;
|
||||
import io.airbyte.cdk.db.jdbc.JdbcDatabase;
|
||||
import io.airbyte.cdk.integrations.source.relationaldb.DbSourceDiscoverUtil;
|
||||
import io.airbyte.cdk.integrations.source.relationaldb.TableInfo;
|
||||
@@ -49,7 +48,7 @@ public class MySqlInitialLoadHandler {
|
||||
private static final long RECORD_LOGGING_SAMPLE_RATE = 1_000_000;
|
||||
private final JsonNode config;
|
||||
private final JdbcDatabase database;
|
||||
private final JdbcCompatibleSourceOperations sourceOperations;
|
||||
private final MySqlSourceOperations sourceOperations;
|
||||
private final String quoteString;
|
||||
private final MySqlInitialLoadStateManager initialLoadStateManager;
|
||||
private final Function<AirbyteStreamNameNamespacePair, JsonNode> streamStateForIncrementalRunSupplier;
|
||||
|
||||
@@ -39,12 +39,13 @@ import org.slf4j.LoggerFactory;
|
||||
* from table where pk > pk_max_4 order by pk limit 1,800,000. Final query, since there are zero
|
||||
* records processed here.
|
||||
*/
|
||||
@SuppressWarnings("try")
|
||||
public class MySqlInitialLoadRecordIterator extends AbstractIterator<JsonNode>
|
||||
implements AutoCloseableIterator<JsonNode> {
|
||||
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(MySqlInitialLoadRecordIterator.class);
|
||||
|
||||
private final JdbcCompatibleSourceOperations sourceOperations;
|
||||
private final JdbcCompatibleSourceOperations<MysqlType> sourceOperations;
|
||||
|
||||
private final String quoteString;
|
||||
private final MySqlInitialLoadStateManager initialLoadStateManager;
|
||||
|
||||
Reference in New Issue
Block a user