You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2019/08/08 05:33:35 UTC
[GitHub] [flink] danny0405 commented on a change in pull request #9389:
[FLINK-13645][table-planner] Error in code-gen when using blink planner in
scala shell
danny0405 commented on a change in pull request #9389: [FLINK-13645][table-planner] Error in code-gen when using blink planner in scala shell
URL: https://github.com/apache/flink/pull/9389#discussion_r311861291
##########
File path: flink-table/flink-table-planner-blink/src/main/scala/org/apache/flink/table/planner/codegen/CodeGeneratorContext.scala
##########
@@ -603,7 +603,7 @@ class CodeGeneratorContext(val tableConfig: TableConfig) {
val byteArray = InstantiationUtil.serializeObject(obj)
val objCopy: AnyRef = InstantiationUtil.deserializeObject(
byteArray,
- obj.getClass.getClassLoader)
+ Thread.currentThread().getContextClassLoader)
references += objCopy
Review comment:
Can we give a test case to prove that the `Thread.currentThread().getContextClassLoader` is the right one to choose ?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services