kanika dhuria created SPARK-17922:

             Summary: ClassCastException java.lang.ClassCastException: 
cannot be cast to org.apache.spark.sql.catalyst.expressions.UnsafeProjection 
                 Key: SPARK-17922
                 URL: https://issues.apache.org/jira/browse/SPARK-17922
             Project: Spark
          Issue Type: Bug
          Components: SQL
    Affects Versions: 2.0.0
            Reporter: kanika dhuria

I am using spark 2.0
Seeing class loading issue because the whole stage code gen is generating 
multiple classes with same name as 
I am using dataframe transform. and within transform i use Osgi.
Osgi replaces the thread context class loader to ContextFinder which looks at 
all the class loaders in the stack to find out the new generated class and 
finds the GeneratedClass with inner class GeneratedIterator byteclass 
loader(instead of falling back to the byte class loader created by janino 
compiler), since the class name is same that byte class loader loads the class 
and returns GeneratedClass$GeneratedIterator instead of expected 

This message was sent by Atlassian JIRA

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

Reply via email to