@@ -45,18 +45,18 @@ See how to link with it for cluster execution [here]({{< ref "docs/dev/configura
45
45
46
46
A driver dependency is also required to connect to a specified database. Here are drivers currently supported:
47
47
48
- | Driver | Group Id | Artifact Id | JAR |
49
- | :-----------| :---------------------------| : -----------------------| :----------------------------------------------------------------------------------------------------------------------------------|
50
- | MySQL | ` mysql ` | ` mysql-connector-java ` | [ Download] ( https://repo.maven.apache.org/maven2/mysql/mysql-connector-java/ ) |
51
- | Oracle | ` com.oracle.database.jdbc ` | ` ojdbc8 ` | [ Download] ( https://mvnrepository.com/artifact/com.oracle.database.jdbc/ojdbc8 ) |
52
- | PostgreSQL | ` org.postgresql ` | ` postgresql ` | [ Download] ( https://jdbc.postgresql.org/download/ ) |
53
- | Derby | ` org.apache.derby ` | ` derby ` | [ Download] ( http://db.apache.org/derby/derby_downloads.html ) |
54
- | SQL Server | ` com.microsoft.sqlserver ` | ` mssql-jdbc ` | [ Download] ( https://docs.microsoft.com/en-us/sql/connect/jdbc/download-microsoft-jdbc-driver-for-sql-server?view=sql-server-ver16 ) |
55
- | CrateDB | ` io.crate ` | ` crate-jdbc ` | [ Download] ( https://repo1.maven.org/maven2/io/crate/crate-jdbc/ ) |
56
- | Db2 | ` com.ibm.db2.jcc ` | ` db2jcc ` | [ Download] ( https://www.ibm.com/support/pages/download-db2-fix-packs-version-db2-linux-unix-and-windows ) |
57
- | Trino | ` io.trino ` | ` trino-jdbc ` | [ Download] ( https://repo1.maven.org/maven2/io/trino/trino-jdbc/ ) |
58
- | OceanBase | ` com.oceanbase ` | ` oceanbase-client ` | [ Download] ( https://repo1.maven.org/maven2/com/oceanbase/oceanbase-client/ ) |
59
-
48
+ | Driver | Group Id | Artifact Id | JAR |
49
+ | :-----------| :---------------------------- | :- -----------------------| :----------------------------------------------------------------------------------------------------------------------------------|
50
+ | MySQL | ` mysql ` | ` mysql-connector-java ` | [ Download] ( https://repo.maven.apache.org/maven2/mysql/mysql-connector-java/ ) |
51
+ | Oracle | ` com.oracle.database.jdbc ` | ` ojdbc8 ` | [ Download] ( https://mvnrepository.com/artifact/com.oracle.database.jdbc/ojdbc8 ) |
52
+ | PostgreSQL | ` org.postgresql ` | ` postgresql ` | [ Download] ( https://jdbc.postgresql.org/download/ ) |
53
+ | Derby | ` org.apache.derby ` | ` derby ` | [ Download] ( http://db.apache.org/derby/derby_downloads.html ) |
54
+ | SQL Server | ` com.microsoft.sqlserver ` | ` mssql-jdbc ` | [ Download] ( https://docs.microsoft.com/en-us/sql/connect/jdbc/download-microsoft-jdbc-driver-for-sql-server?view=sql-server-ver16 ) |
55
+ | CrateDB | ` io.crate ` | ` crate-jdbc ` | [ Download] ( https://repo1.maven.org/maven2/io/crate/crate-jdbc/ ) |
56
+ | Db2 | ` com.ibm.db2.jcc ` | ` db2jcc ` | [ Download] ( https://www.ibm.com/support/pages/download-db2-fix-packs-version-db2-linux-unix-and-windows ) |
57
+ | Trino | ` io.trino ` | ` trino-jdbc ` | [ Download] ( https://repo1.maven.org/maven2/io/trino/trino-jdbc/ ) |
58
+ | OceanBase | ` com.oceanbase ` | ` oceanbase-client ` | [ Download] ( https://repo1.maven.org/maven2/com/oceanbase/oceanbase-client/ ) |
59
+ | Snowflake | ` net.snowflake ` | ` snowflake-jdbc ` | [ Download ] ( https://repo1.maven.org/maven2/net/snowflake/snowflake-jdbc/ )
60
60
61
61
JDBC connector and drivers are not part of Flink's binary distribution. See how to link with them for cluster execution [ here] ({{< ref "docs/dev/configuration/overview" >}}).
62
62
@@ -433,6 +433,13 @@ As there is no standard syntax for upsert, the following table describes the dat
433
433
WHEN NOT MATCHED THEN INSERT (..) <br>
434
434
VALUES (..)</td>
435
435
</tr>
436
+ <tr>
437
+ <td>Snowflake</td>
438
+ <td>MERGE INTO .. USING (..) ON (..) <br>
439
+ WHEN MATCHED THEN UPDATE SET (..) <br>
440
+ WHEN NOT MATCHED THEN INSERT (..) <br>
441
+ VALUES (..)</td>
442
+ </tr>
436
443
</tbody>
437
444
</table >
438
445
@@ -670,6 +677,7 @@ Flink supports connect to several databases which uses dialect like MySQL, Oracl
670
677
<th class="text-left"><a href="https://trino.io/docs/current/language/types.html">Trino type</a></th>
671
678
<th class="text-left"><a href="https://en.oceanbase.com/docs/common-oceanbase-database-10000000001106898">OceanBase MySQL mode type</a></th>
672
679
<th class="text-left"><a href="https://en.oceanbase.com/docs/common-oceanbase-database-10000000001107076">OceanBase Oracle mode type</a></th>
680
+ <th class="text-left"><a href="https://docs.snowflake.com/en/sql-reference-data-types">Snowflake</a></th>
673
681
<th class="text-left"><a href="{{< ref "docs/dev/table/types" >}}">Flink SQL type</a></th>
674
682
</tr>
675
683
</thead>
@@ -684,6 +692,7 @@ Flink supports connect to several databases which uses dialect like MySQL, Oracl
684
692
<td><code>TINYINT</code></td>
685
693
<td><code>TINYINT</code></td>
686
694
<td></td>
695
+ <td></td>
687
696
<td><code>TINYINT</code></td>
688
697
</tr>
689
698
<tr>
@@ -706,6 +715,7 @@ Flink supports connect to several databases which uses dialect like MySQL, Oracl
706
715
<code>SMALLINT</code><br>
707
716
<code>TINYINT UNSIGNED</code></td>
708
717
<td></td>
718
+ <td>SMALLINT</td>
709
719
<td><code>SMALLINT</code></td>
710
720
</tr>
711
721
<tr>
@@ -728,6 +738,7 @@ Flink supports connect to several databases which uses dialect like MySQL, Oracl
728
738
<code>MEDIUMINT</code><br>
729
739
<code>SMALLINT UNSIGNED</code></td>
730
740
<td></td>
741
+ <td>INT</td>
731
742
<td><code>INT</code></td>
732
743
</tr>
733
744
<tr>
@@ -748,6 +759,7 @@ Flink supports connect to several databases which uses dialect like MySQL, Oracl
748
759
<code>BIGINT</code><br>
749
760
<code>INT UNSIGNED</code></td>
750
761
<td></td>
762
+ <td>BIGINT</td>
751
763
<td><code>BIGINT</code></td>
752
764
</tr>
753
765
<tr >
@@ -760,6 +772,7 @@ Flink supports connect to several databases which uses dialect like MySQL, Oracl
760
772
<td></td>
761
773
<td><code>BIGINT UNSIGNED</code></td>
762
774
<td></td>
775
+ <td></td>
763
776
<td><code>DECIMAL(20, 0)</code></td>
764
777
</tr>
765
778
<tr>
@@ -778,6 +791,9 @@ Flink supports connect to several databases which uses dialect like MySQL, Oracl
778
791
<td><code>FLOAT</code></td>
779
792
<td>
780
793
<code>BINARY_FLOAT</code></td>
794
+ <td>
795
+ <code>REAL</code><br>
796
+ <code>FLOAT</code></td>
781
797
<td><code>FLOAT</code></td>
782
798
</tr>
783
799
<tr>
@@ -796,6 +812,9 @@ Flink supports connect to several databases which uses dialect like MySQL, Oracl
796
812
<td><code>DOUBLE</code></td>
797
813
<td><code>DOUBLE</code></td>
798
814
<td><code>BINARY_DOUBLE</code></td>
815
+ <td>
816
+ <code>DOUBLE</code><br>
817
+ <code>DOUBLE PRECISION</code></td>
799
818
<td><code>DOUBLE</code></td>
800
819
</tr>
801
820
<tr>
@@ -824,6 +843,7 @@ Flink supports connect to several databases which uses dialect like MySQL, Oracl
824
843
<td>
825
844
<code>FLOAT(s)</code><br>
826
845
<code>NUMBER(p, s)</code></td>
846
+ <td><code>NUMERIC(p, s)</code></td>
827
847
<td><code>DECIMAL(p, s)</code></td>
828
848
</tr>
829
849
<tr>
@@ -841,6 +861,7 @@ Flink supports connect to several databases which uses dialect like MySQL, Oracl
841
861
<code>TINYINT(1)</code></td>
842
862
<td></td>
843
863
<td><code>BOOLEAN</code></td>
864
+ <td><code>BOOLEAN</code></td>
844
865
</tr>
845
866
<tr>
846
867
<td><code>DATE</code></td>
@@ -853,6 +874,7 @@ Flink supports connect to several databases which uses dialect like MySQL, Oracl
853
874
<td><code>DATE</code></td>
854
875
<td><code>DATE</code></td>
855
876
<td><code>DATE</code></td>
877
+ <td><code>DATE</code></td>
856
878
</tr>
857
879
<tr>
858
880
<td><code>TIME [(p)]</code></td>
@@ -864,6 +886,7 @@ Flink supports connect to several databases which uses dialect like MySQL, Oracl
864
886
<td><code>TIME_WITHOUT_TIME_ZONE</code></td>
865
887
<td><code>TIME [(p)]</code></td>
866
888
<td><code>DATE</code></td>
889
+ <td><code>DATE</code></td>
867
890
<td><code>TIME [(p)] [WITHOUT TIMEZONE]</code></td>
868
891
</tr>
869
892
<tr>
@@ -880,6 +903,7 @@ Flink supports connect to several databases which uses dialect like MySQL, Oracl
880
903
<td><code>DATETIME [(p)]</code></td>
881
904
<td><code>TIMESTAMP [(p)] [WITHOUT TIMEZONE]</code></td>
882
905
<td><code>TIMESTAMP [(p)] [WITHOUT TIMEZONE]</code></td>
906
+ <td><code>TIMESTAMP [(p)] [WITHOUT TIMEZONE]</code></td>
883
907
</tr>
884
908
<tr>
885
909
<td>
@@ -927,6 +951,14 @@ Flink supports connect to several databases which uses dialect like MySQL, Oracl
927
951
<code>NCHAR(n)</code><br>
928
952
<code>VARCHAR2(n)</code><br>
929
953
<code>CLOB</code></td>
954
+ <td>
955
+ <code>CHAR(n)</code><br>
956
+ <code>CHARACTER(n)</code><br>
957
+ <code>VARCHAR(n)</code><br>
958
+ <code>CHARACTER VARYING(n)</code><br>
959
+ <code>TEXT</code>
960
+ <code>STRING</code>
961
+ </td>
930
962
<td><code>STRING</code></td>
931
963
</tr>
932
964
<tr>
@@ -951,7 +983,12 @@ Flink supports connect to several databases which uses dialect like MySQL, Oracl
951
983
<code>BLOB</code></td>
952
984
<td>
953
985
<code>RAW(s)</code><br>
954
- <code>BLOB</code></td>
986
+ <code>BLOB</code>
987
+ </td>
988
+ <td>
989
+ <code>BINARY(n)</code><br>
990
+ <code>VARBINARY(n)</code><br>
991
+ </td>
955
992
<td><code>BYTES</code></td>
956
993
</tr>
957
994
<tr>
@@ -965,6 +1002,7 @@ Flink supports connect to several databases which uses dialect like MySQL, Oracl
965
1002
<td></td>
966
1003
<td></td>
967
1004
<td><code>ARRAY</code></td>
1005
+ <td><code>ARRAY</code></td>
968
1006
</tr>
969
1007
</tbody>
970
1008
</table >
0 commit comments