From 9e14478fa9b025f17974564fbc5fce3d3e54382e Mon Sep 17 00:00:00 2001 From: mzitnik Date: Wed, 11 Dec 2024 15:49:47 +0200 Subject: [PATCH] troubleshooting cloud tests --- .../src/main/scala/com/clickhouse/spark/Utils.scala | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/clickhouse-core/src/main/scala/com/clickhouse/spark/Utils.scala b/clickhouse-core/src/main/scala/com/clickhouse/spark/Utils.scala index 3402a76e..65ddd7e7 100644 --- a/clickhouse-core/src/main/scala/com/clickhouse/spark/Utils.scala +++ b/clickhouse-core/src/main/scala/com/clickhouse/spark/Utils.scala @@ -74,7 +74,13 @@ object Utils extends Logging { copyPath.toFile } - def load(key: String, defValue: String = ""): String = sys.props.getOrElse(key, sys.env.getOrElse(key, defValue)) + def load(key: String, defValue: String = ""): String = { + val envValue = sys.env.getOrElse(key, defValue) + println(s"Loaded $key=${envValue.length}") + val value = sys.props.getOrElse(key, envValue) + println(s"Loaded $key=${value.length}") + value + } def stripSingleQuote(maybeQuoted: String): String = { var start = 0