File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed 
sql/core/src/main/scala/org/apache/spark/sql Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -541,9 +541,9 @@ class SQLContext(@transient val sparkContext: SparkContext)
541541  def  createDataFrame (data : java.util.List [_], beanClass : Class [_]):  DataFrame  =  {
542542    val  schema  =  getSchema(beanClass)
543543    val  className  =  beanClass.getName
544-     val  localBeanInfo  =  Introspector .getBeanInfo(Utils .classForName(className) )
544+     val  beanInfo  =  Introspector .getBeanInfo(beanClass )
545545    val  extractors  = 
546-       localBeanInfo .getPropertyDescriptors.filterNot(_.getName ==  " class" 
546+       beanInfo .getPropertyDescriptors.filterNot(_.getName ==  " class" 
547547    val  methodsToConverts  =  extractors.zip(schema).map { case  (e, attr) => 
548548      (e, CatalystTypeConverters .createToCatalystConverter(attr.dataType))
549549    }
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments