Skip to content

Conversation

@turboFei
Copy link
Member

@turboFei turboFei commented Apr 3, 2024

🔍 Description

Issue References 🔗

Convert the spark batch conf key if not start with spark., it is impacted by #5767

  protected def convertConfigKey(key: String): String = {
    if (key.startsWith("spark.")) {
      key
    } else if (key.startsWith("hadoop.")) {
      "spark.hadoop." + key
    } else {
      "spark." + key
    }
  }

Describe Your Solution 🔧

Types of changes 🔖

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Test Plan 🧪

Behavior Without This Pull Request ⚰️

Behavior With This Pull Request 🎉

Related Unit Tests


Checklist 📝

Be nice. Be informative.

@turboFei turboFei closed this in c8a40d9 Apr 3, 2024
turboFei added a commit that referenced this pull request Apr 3, 2024
# 🔍 Description
## Issue References 🔗

Convert the spark batch conf key if not start with `spark.`, it is impacted by #5767

```
  protected def convertConfigKey(key: String): String = {
    if (key.startsWith("spark.")) {
      key
    } else if (key.startsWith("hadoop.")) {
      "spark.hadoop." + key
    } else {
      "spark." + key
    }
  }
```
## Describe Your Solution 🔧

## Types of changes 🔖

- [x] Bugfix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)

## Test Plan 🧪

#### Behavior Without This Pull Request ⚰️

#### Behavior With This Pull Request 🎉

#### Related Unit Tests

---

# Checklist 📝

- [x] This patch was not authored or co-authored using [Generative Tooling](https://www.apache.org/legal/generative-tooling.html)

**Be nice. Be informative.**

Closes #6256 from turboFei/convert_key.

Closes #5767

d76655e [Wang, Fei] Fix break

Authored-by: Wang, Fei <fwang12@ebay.com>
Signed-off-by: Wang, Fei <fwang12@ebay.com>
(cherry picked from commit c8a40d9)
Signed-off-by: Wang, Fei <fwang12@ebay.com>
turboFei added a commit that referenced this pull request Apr 3, 2024
Convert the spark batch conf key if not start with `spark.`, it is impacted by #5767

```
  protected def convertConfigKey(key: String): String = {
    if (key.startsWith("spark.")) {
      key
    } else if (key.startsWith("hadoop.")) {
      "spark.hadoop." + key
    } else {
      "spark." + key
    }
  }
```

- [x] Bugfix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)

---

- [x] This patch was not authored or co-authored using [Generative Tooling](https://www.apache.org/legal/generative-tooling.html)

**Be nice. Be informative.**

Closes #6256 from turboFei/convert_key.

Closes #5767

d76655e [Wang, Fei] Fix break

Authored-by: Wang, Fei <fwang12@ebay.com>
Signed-off-by: Wang, Fei <fwang12@ebay.com>
(cherry picked from commit c8a40d9)
Signed-off-by: Wang, Fei <fwang12@ebay.com>
@turboFei
Copy link
Member Author

turboFei commented Apr 3, 2024

thanks, merged to master/1.9/1.8

@turboFei turboFei deleted the convert_key branch April 3, 2024 17:17
@turboFei turboFei added this to the v1.8.2 milestone Apr 3, 2024
turboFei added a commit to turboFei/kyuubi that referenced this pull request Aug 27, 2025
Convert the spark batch conf key if not start with `spark.`, it is impacted by apache#5767

```
  protected def convertConfigKey(key: String): String = {
    if (key.startsWith("spark.")) {
      key
    } else if (key.startsWith("hadoop.")) {
      "spark.hadoop." + key
    } else {
      "spark." + key
    }
  }
```

- [x] Bugfix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)

---

- [x] This patch was not authored or co-authored using [Generative Tooling](https://www.apache.org/legal/generative-tooling.html)

**Be nice. Be informative.**

Closes apache#6256 from turboFei/convert_key.

Closes apache#5767

d76655e [Wang, Fei] Fix break

Authored-by: Wang, Fei <fwang12@ebay.com>
Signed-off-by: Wang, Fei <fwang12@ebay.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants