@ Override public void resolveForTable ( Table table ) { assert ( table != null ) ; // It MAY be that for the case in which this function is called (expression indexes), the column's // table name is not specified (and not missed?). // It is possible to "correct" that here by cribbing it from the supplied table (base table for the index) // -- not bothering for now. Column column = table . getColumns ( ) . getExact ( m_columnName ) ; assert ( column != null ) ; m_tableName = table . getTypeName ( ) ; m_columnIndex = column . getIndex ( ) ; setTypeSizeAndInBytes ( column ) ; }
Resolve a TVE in the context of the given table . Since this is a TVE it is a leaf node in the expression tree . We just look up the metadata from the table and copy it here to this object .