Skip to content

Commit

Permalink
update checkstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
nutsjian committed Nov 11, 2022
1 parent 93468b5 commit 18cf506
Showing 1 changed file with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,19 @@

package org.apache.seatunnel.connectors.seatunnel.jdbc.internal.dialect.sqlite;

import lombok.extern.slf4j.Slf4j;
import org.apache.seatunnel.api.table.type.BasicType;
import org.apache.seatunnel.api.table.type.PrimitiveByteArrayType;
import org.apache.seatunnel.api.table.type.SeaTunnelDataType;
import org.apache.seatunnel.connectors.seatunnel.jdbc.internal.dialect.JdbcDialectTypeMapper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import lombok.extern.slf4j.Slf4j;

import java.sql.ResultSetMetaData;
import java.sql.SQLException;

@Slf4j
public class SqliteTypeMapper implements JdbcDialectTypeMapper {

private static final Logger LOG = LoggerFactory.getLogger(SqliteTypeMapper.class);

// ============================data types=====================

private static final String SQLITE_UNKNOWN = "UNKNOWN";
Expand Down Expand Up @@ -126,10 +123,10 @@ public SeaTunnelDataType<?> mapping(ResultSetMetaData metadata, int colIndex) th
case SQLITE_FLOAT:
return BasicType.FLOAT_TYPE;
case SQLITE_FLOAT_UNSIGNED:
LOG.warn("{} will probably cause value overflow.", SQLITE_FLOAT_UNSIGNED);
log.warn("{} will probably cause value overflow.", SQLITE_FLOAT_UNSIGNED);
return BasicType.FLOAT_TYPE;
case SQLITE_DOUBLE_UNSIGNED:
LOG.warn("{} will probably cause value overflow.", SQLITE_DOUBLE_UNSIGNED);
log.warn("{} will probably cause value overflow.", SQLITE_DOUBLE_UNSIGNED);
return BasicType.DOUBLE_TYPE;
case SQLITE_CHARACTER:
case SQLITE_VARYING_CHARACTER:
Expand Down

0 comments on commit 18cf506

Please sign in to comment.