anchor.diff:      ?Warn("column_map_columns error Acc ~p~n", [Acc]),
       ?ClientError({"Column map invalid columns",Columns}).
   
  -column_map_lookup({Schema,Table,Name}=QN3,FullMap) ->
  +column_map_lookup(QN3,FullMap) ->
  +    case field_map_lookup(QN3,FullMap) of
  +        #bind{type=term,btree={from_binterm,Bind}} ->   Bind;   %% represent as binterm to the rowfuns
  +        Other ->                                        Other   
  +    end.                                
  +
  +field_map_lookup({Schema,Table,Name}=QN3,FullMap) ->
       % ?LogDebug("column_map lookup ~p ~p ~p~n", [Schema,Table,Name]),
       Pred = fun(__FM) ->
           ((Name == undefined) orelse (Name == __FM#bind.name)) 
  
positive.code:                     {S,T,N} = binstr_to_qname3(PTree),
                      case N of
                          ?Star ->    #bind{schema=S,table=T,name=?Star};
                          _ ->        column_map_lookup({S,T,N},FullMap)  %% N could be a table name here
                      end
              end;
          {B,Tbind} when Tbind==#bind{} ->    %% assume binstr, use to_<datatype>() to override
  
negative.code:             Bind = hd(Bmatch),     
              case Bind of
                  #bind{type=binterm} ->  
                      %% db field encoded as binary, must decode to term in where tree
                      %% this conversion is removed for simple column expressions in column_map_lookup
                      #bind{type=term,btree={from_binterm,Bind}};
                  _ ->    
                      %% db field is not stored in encoded form, no transformation needed
                      Bind
              end
      end.
  