Skip to content

Commit 3d6487c

Browse files
committed
removed useless log.warn about unsupported methods
1 parent 2a0b19e commit 3d6487c

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

jdbc-v2/src/main/java/com/clickhouse/jdbc/metadata/DatabaseMetaDataImpl.java

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -903,7 +903,6 @@ private static String columnDataTypeToSqlType(String value) {
903903
@Override
904904
public ResultSet getColumnPrivileges(String catalog, String schema, String table, String columnNamePattern) throws SQLException {
905905
//Return an empty result set with the required columns
906-
log.warn("getColumnPrivileges is not supported and may return invalid results");
907906
try {
908907
return connection.createStatement().executeQuery("SELECT NULL::Nullable(String) AS TABLE_CAT, " +
909908
"NULL::Nullable(String) AS TABLE_SCHEM, " +
@@ -922,7 +921,6 @@ public ResultSet getColumnPrivileges(String catalog, String schema, String table
922921
@Override
923922
public ResultSet getTablePrivileges(String catalog, String schemaPattern, String tableNamePattern) throws SQLException {
924923
//Return an empty result set with the required columns
925-
log.warn("getTablePrivileges is not supported and may return invalid results");
926924
try {
927925
return connection.createStatement().executeQuery("SELECT NULL::Nullable(String) AS TABLE_CAT, " +
928926
"NULL::Nullable(String) AS TABLE_SCHEM, " +
@@ -940,7 +938,6 @@ public ResultSet getTablePrivileges(String catalog, String schemaPattern, String
940938
@Override
941939
public ResultSet getBestRowIdentifier(String catalog, String schema, String table, int scope, boolean nullable) throws SQLException {
942940
//Return an empty result set with the required columns
943-
log.warn("getBestRowIdentifier is not supported and may return invalid results");
944941
try {
945942
return connection.createStatement().executeQuery("SELECT NULL::Nullable(Int16) AS SCOPE, " +
946943
"NULL::Nullable(String) AS COLUMN_NAME, " +
@@ -959,7 +956,6 @@ public ResultSet getBestRowIdentifier(String catalog, String schema, String tabl
959956
@Override
960957
public ResultSet getVersionColumns(String catalog, String schema, String table) throws SQLException {
961958
//Return an empty result set with the required columns
962-
log.warn("getVersionColumns is not supported and may return invalid results");
963959
try {
964960
return connection.createStatement().executeQuery("SELECT NULL::Nullable(Int16) AS SCOPE, " +
965961
"NULL::Nullable(String) AS COLUMN_NAME, " +
@@ -1025,7 +1021,6 @@ public ResultSet getImportedKeys(String catalog, String schema, String table) th
10251021
@Override
10261022
public ResultSet getExportedKeys(String catalog, String schema, String table) throws SQLException {
10271023
// ClickHouse has no notion of foreign key. This method should return empty resultset
1028-
log.warn("getExportedKeys is not supported and may return invalid results");
10291024
try {
10301025
return connection.createStatement().executeQuery("SELECT NULL::Nullable(String) AS PKTABLE_CAT, " +
10311026
"NULL::Nullable(String) AS PKTABLE_SCHEM, " +
@@ -1050,7 +1045,6 @@ public ResultSet getExportedKeys(String catalog, String schema, String table) th
10501045
@Override
10511046
public ResultSet getCrossReference(String parentCatalog, String parentSchema, String parentTable, String foreignCatalog, String foreignSchema, String foreignTable) throws SQLException {
10521047
//Return an empty result set with the required columns
1053-
log.warn("getCrossReference is not supported and may return invalid results");
10541048
try {
10551049
String columns = "NULL ::Nullable(String) AS PKTABLE_CAT, " +
10561050
"NULL::Nullable(String) AS PKTABLE_SCHEM, " +
@@ -1227,7 +1221,6 @@ public boolean supportsBatchUpdates() throws SQLException {
12271221
@Override
12281222
public ResultSet getUDTs(String catalog, String schemaPattern, String typeNamePattern, int[] types) throws SQLException {
12291223
//Return an empty result set with the required columns
1230-
log.warn("getUDTs is not supported and may return invalid results");
12311224
try {
12321225
return connection.createStatement().executeQuery("SELECT " +
12331226
"NULL::Nullable(String) AS TYPE_CAT, " +
@@ -1274,7 +1267,6 @@ public boolean supportsGetGeneratedKeys() throws SQLException {
12741267
@Override
12751268
public ResultSet getSuperTypes(String catalog, String schemaPattern, String typeNamePattern) throws SQLException {
12761269
//Return an empty result set with the required columns
1277-
log.warn("getSuperTypes is not supported and may return invalid results");
12781270
try {
12791271
return connection.createStatement().executeQuery(
12801272
"SELECT NULL::Nullable(String) AS TYPE_CAT, "
@@ -1292,7 +1284,6 @@ public ResultSet getSuperTypes(String catalog, String schemaPattern, String type
12921284
@Override
12931285
public ResultSet getSuperTables(String catalog, String schemaPattern, String tableNamePattern) throws SQLException {
12941286
//Return an empty result set with the required columns
1295-
log.warn("getSuperTables is not supported and may return invalid results");
12961287
try {
12971288
return connection.createStatement().executeQuery(
12981289
"SELECT "
@@ -1309,7 +1300,6 @@ public ResultSet getSuperTables(String catalog, String schemaPattern, String tab
13091300
@Override
13101301
public ResultSet getAttributes(String catalog, String schemaPattern, String typeNamePattern, String attributeNamePattern) throws SQLException {
13111302
//Return an empty result set with the required columns
1312-
log.warn("getAttributes is not supported and may return invalid results");
13131303
try {
13141304
return connection.createStatement().executeQuery(
13151305
"SELECT "
@@ -1334,7 +1324,7 @@ public ResultSet getAttributes(String catalog, String schemaPattern, String type
13341324
+ "NULL::Nullable(String) AS SCOPE_SCHEMA, "
13351325
+ "NULL::Nullable(String) AS SCOPE_TABLE, "
13361326
+ "NULL::Nullable(Int16) AS SOURCE_DATA_TYPE" +
1337-
" LIMIT 0");
1327+
" LIMIT 0");
13381328
} catch (Exception e) {
13391329
throw ExceptionUtils.toSqlState(e);
13401330
}

0 commit comments

Comments
 (0)