[ 
https://issues.apache.org/jira/browse/SPARK-26409?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Gengliang Wang updated SPARK-26409:
-----------------------------------
    Description: 
`SQLConf` is supposed to be serializable. However, currently it is not  
serializable in `WithTestConf`. `WithTestConf` uses the method `overrideConfs` 
in closure, while the classes which implements it 
(`TestHiveSessionStateBuilder` and `TestSQLSessionStateBuilder`) are not 
serializable.

Use a local variable to fix it.

  was:
Currently the `SQLConf` in `WithTestConf` is not serializable. It uses the 
method `overrideConfs` in closure, while the class 
`TestHiveSessionStateBuilder` and `TestSQLSessionStateBuilder` are not 
serializable.

This PR is to use a local variable to fix it.



> SQLConf should be serializable in test sessions
> -----------------------------------------------
>
>                 Key: SPARK-26409
>                 URL: https://issues.apache.org/jira/browse/SPARK-26409
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL, Tests
>    Affects Versions: 3.0.0
>            Reporter: Gengliang Wang
>            Priority: Major
>
> `SQLConf` is supposed to be serializable. However, currently it is not  
> serializable in `WithTestConf`. `WithTestConf` uses the method 
> `overrideConfs` in closure, while the classes which implements it 
> (`TestHiveSessionStateBuilder` and `TestSQLSessionStateBuilder`) are not 
> serializable.
> Use a local variable to fix it.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to