dotnet / dotnet/spark

[FEATURE REQUEST]: Create a test utility function to set SQL configurations for running a test and then resetting them

Open
#693 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
C#
Stars
2.1k
Forks
332
Avg merge
1d 20h
Merged PRs (30d)
9

Description

**Is your feature request related to a problem? Please describe.**
Currently, in order to run a test with a particular config setting, those settings have to be made and then unmade manually.

**Describe the solution you'd like**
A function like [`withSQLConf`](https://github.com/apache/spark/blob/55d38a479b3d9d2607e1c564f07bf617fca8a6c2/sql/core/src/test/scala/org/apache/spark/sql/internal/ExecutorSideSQLConfSuite.scala#L59) in Scala or [`sql_conf`](https://github.com/apache/spark/blob/master/python/pyspark/testing/sqlutils.py#L167) in PySpark, in C# which can test some configuration specific logic and then restore it back when the test exits.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.