Member since 
    
	
		
		
		06-19-2015
	
	
	
	
	
	
	
	
	
	
	
	
	
	
			
      
                3
            
            
                Posts
            
        
                0
            
            
                Kudos Received
            
        
                0
            
            
                Solutions
            
        
			
    
	
		
		
		07-01-2015
	
		
		12:27 PM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
		
	
				
		
			
					
				
		
	
		
					
							 I can run your code in the shell with -test.cc without the a problem, but when I created a function with it in impala, it is not working, only lines I added are:   87     StringVal result;   88     percentile->values->sort();   89    90     std::cerr << "Sorted list:" << endl;   91     for (std::list<double>::iterator it = percentile->values->begin(); it != percentile->values->end(); it++)   92         std::cerr << *it << ' ';   93     std::cerr << "\n===Sorted list:" << endl;   94    95     int n = percentile->percent * (percentile->nb - 1);   96     std::list<double>::iterator it = percentile->values->begin();     from 90-93, to see if the list sorted correctly.     impalad.INFO  .....  I0701 12:15:43.854324 30959 plan-fragment-executor.cc:190] descriptor table for fragment=7b405b9a021d464a:6b#  # A fatal error has been detected by the Java Runtime Environment:  #  #  SIGSEGV (0xb) at pc=0x00007fb42a30ba3c, pid=27281, tid=140411399993088  #  # JRE version: Java(TM) SE Runtime Environment (7.0_67-b01) (build 1.7.0_67-b01)  # Java VM: Java HotSpot(TM) 64-Bit Server VM (24.65-b04 mixed mode linux-amd64 compressed oops)  # Problematic frame:  # C  [libudapctL.27281.0.so+0x3a3c]  std::list<double, std::allocator<double> >::merge(std::list<double, std::allocator<double> >&)+0x80  #  # Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again  #  # An error report file with more information is saved as:  # /var/run/cloudera-scm-agent/process/411-impala-IMPALAD/hs_err_pid27281.log  #  # If you would like to submit a bug report, please visit:  #   http://bugreport.sun.com/bugreport/crash.jsp  #  5b38a813715cac  ....  imalapd.ERROR  E0701 12:15:45.940914  9620 logging.cc:119] stderr will be logged to this file.  call PercentUpdate:  call PercentUpdate:  call PercentUpdate:  call PercentUpdate:  call PercentUpdate:  call PercentUpdate:  call PercentUpdate:  call PercentUpdate:  call PercentSerialize:  call PercentMerge:  call PercentMerge:  My data set have more the 20 elements, seems like to read up 1/3 then start to serialize it, and merge the result, but error out there. Did you ever had this problem?    Seems like 
						
					
					... View more
				
			
			
			
			
			
			
			
			
			
		
			
    
	
		
		
		06-19-2015
	
		
		12:47 PM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
		
	
				
		
			
					
				
		
	
		
					
							 Could you share your final code since you said that you have found the problem and resolved, thanks. 
						
					
					... View more
				
			
			
			
			
			
			
			
			
			
		 
        
