Skip to content

Commit 0ec456a

Browse files
committed
Support elastic Version type
1 parent 94b450f commit 0ec456a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/main/java/com/getindata/flink/connector/jdbc/catalog/ElasticTypeMapper.java

+2
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ public class ElasticTypeMapper implements JdbcDialectTypeMapper {
4242
private static final String ELASTIC_SCALED_FLOAT = "SCALED_FLOAT";
4343
private static final String ELASTIC_SHORT = "SHORT";
4444
private static final String ELASTIC_GEO_POINT = "GEO_POINT";
45+
private static final String ELASTIC_VERSION = "VERSION";
4546

4647
@Override
4748
public DataType mapping(ObjectPath tablePath, ResultSetMetaData metadata, int colIndex) throws SQLException {
@@ -53,6 +54,7 @@ public DataType mapping(ObjectPath tablePath, ResultSetMetaData metadata, int co
5354
case ELASTIC_KEYWORD:
5455
case ELASTIC_IP:
5556
case ELASTIC_GEO_POINT:
57+
case ELASTIC_VERSION:
5658
return DataTypes.STRING();
5759
case ELASTIC_BOOLEAN:
5860
return DataTypes.BOOLEAN();

src/test/java/com/getindata/flink/connector/jdbc/catalog/ElasticJdbcCatalogFactoryTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import org.apache.flink.table.catalog.exceptions.DatabaseNotExistException;
66
import org.apache.flink.table.factories.CatalogFactory.Context;
77
import org.apache.flink.table.factories.FactoryUtil;
8-
import org.junit.Test;
8+
import org.junit.jupiter.api.Test;
99

1010
import java.util.List;
1111
import java.util.Map;

0 commit comments

Comments
 (0)