You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by ma...@apache.org on 2024/02/19 07:25:16 UTC
(spark) branch master updated: [MINOR][SQL] Remove `unsupportedOperationMsg` from `CaseInsensitiveStringMap`
This is an automated email from the ASF dual-hosted git repository.
maxgekk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/master by this push:
new 081809667611 [MINOR][SQL] Remove `unsupportedOperationMsg` from `CaseInsensitiveStringMap`
081809667611 is described below
commit 081809667611ceca926e9ef66f0bc3a786039314
Author: yangjie01 <ya...@baidu.com>
AuthorDate: Mon Feb 19 10:25:01 2024 +0300
[MINOR][SQL] Remove `unsupportedOperationMsg` from `CaseInsensitiveStringMap`
### What changes were proposed in this pull request?
This pr remove unused private field `unsupportedOperationMsg` from `CaseInsensitiveStringMap`, it is replaced by `_LEGACY_ERROR_TEMP_3206` after https://github.com/apache/spark/pull/44549 is merged,
### Why are the changes needed?
Remove unused private field.
### Does this PR introduce _any_ user-facing change?
No
### How was this patch tested?
Pass GitHub Actions
### Was this patch authored or co-authored using generative AI tooling?
No
Closes #45161 from LuciferYang/minior-CaseInsensitiveStringMap.
Authored-by: yangjie01 <ya...@baidu.com>
Signed-off-by: Max Gekk <ma...@gmail.com>
---
.../main/java/org/apache/spark/sql/util/CaseInsensitiveStringMap.java | 2 --
1 file changed, 2 deletions(-)
diff --git a/sql/catalyst/src/main/java/org/apache/spark/sql/util/CaseInsensitiveStringMap.java b/sql/catalyst/src/main/java/org/apache/spark/sql/util/CaseInsensitiveStringMap.java
index 1c5c38ba705f..00a3de692fbf 100644
--- a/sql/catalyst/src/main/java/org/apache/spark/sql/util/CaseInsensitiveStringMap.java
+++ b/sql/catalyst/src/main/java/org/apache/spark/sql/util/CaseInsensitiveStringMap.java
@@ -45,8 +45,6 @@ import java.util.Set;
public class CaseInsensitiveStringMap implements Map<String, String> {
private static final Logger logger = LoggerFactory.getLogger(CaseInsensitiveStringMap.class);
- private String unsupportedOperationMsg = "CaseInsensitiveStringMap is read-only.";
-
public static CaseInsensitiveStringMap empty() {
return new CaseInsensitiveStringMap(new HashMap<>(0));
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org