File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed 
x-pack/plugin/esql-core/src/main/java/org/elasticsearch/xpack/esql/core/expression Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 1717
1818import  java .io .IOException ;
1919import  java .util .List ;
20+ import  java .util .Objects ;
2021
2122import  static  java .util .Collections .singletonList ;
2223
@@ -147,4 +148,10 @@ public String nodeString() {
147148    public  static  Expression  unwrap (Expression  e ) {
148149        return  e  instanceof  Alias  as  ? as .child () : e ;
149150    }
151+ 
152+     @ Override 
153+     protected  boolean  innerEquals (Object  o ) {
154+         var  other  = (Alias ) o ;
155+         return  super .innerEquals (other ) && Objects .equals (id (), other .id ());
156+     }
150157}
Original file line number Diff line number Diff line change @@ -54,6 +54,6 @@ public int hashCode() {
5454    @ Override 
5555    protected  boolean  innerEquals (Object  o ) {
5656        var  other  = (TypedAttribute ) o ;
57-         return  super .innerEquals (other ) && dataType  == other .dataType ;
57+         return  super .innerEquals (other ) && Objects . equals ( id (),  other . id ()) &&  dataType  == other .dataType ;
5858    }
5959}
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments