Github user viirya commented on the issue:
https://github.com/apache/spark/pull/21106
> I think we have a general problem with passing configs to code
generators. For this PR, let's make it simple and only use the conf in tests.
We are fine in tests because tests create these code generators in driver and
we can access SQLConf directly.
@cloud-fan Ok. Let's only use the config in test for now. So do you still
think we should make `UnsafeProjection` as class and pass in `mode` like this?
```scala
class UnsafeProjection(mode: CodegenObjectFactoryMode =
CodegenObjectFactoryMode.currentMode)
```
Currently `CodegenObjectFactory.createObject` will check `currentMode`.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]