From abf7b28b800b9fba3be5f5f78917ea524c102d91 Mon Sep 17 00:00:00 2001 From: mzitnik Date: Mon, 15 Jul 2024 09:43:48 +0300 Subject: [PATCH] Remove parsing exception due to java library upgrade --- .../src/main/scala/xenon/clickhouse/ClickHouseCatalog.scala | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spark-3.5/clickhouse-spark/src/main/scala/xenon/clickhouse/ClickHouseCatalog.scala b/spark-3.5/clickhouse-spark/src/main/scala/xenon/clickhouse/ClickHouseCatalog.scala index 36bb1229..e1ce6df9 100644 --- a/spark-3.5/clickhouse-spark/src/main/scala/xenon/clickhouse/ClickHouseCatalog.scala +++ b/spark-3.5/clickhouse-spark/src/main/scala/xenon/clickhouse/ClickHouseCatalog.scala @@ -123,9 +123,8 @@ class ClickHouseCatalog extends TableCatalog // not sure if this check is necessary case Left(exception) if exception.code == UNKNOWN_DATABASE.code => throw new NoSuchTableException(s"Database $db does not exist") - case Left(exception) if exception.toString.indexOf("Code: 60. DB::Exception: Unknown table") > 0 => - throw new NoSuchTableException(ident) case Left(rethrow) => + println(rethrow) throw rethrow case Right(_) => (db, tbl)