select 'buildCustomColumnEnd' as table_source, a.[BuildId] as build_id, a.[cubeID], a.[cubeName] as cube_name, tostring(a.[startTimeStamp]) as startTimeStamp, tostring(a.[endTimeStamp]) as endTimeStamp, a.[cloudTable] as table_name, a.[cloudColumn] as column_name, toint(0) as column_count, toint(0) as total_rows, a.[duration], 'sync' as build_behavior from [buildCustomColumnEnd] a union all select 'buildTableimportEnd' as table_source, a.[BuildId] as build_id, a.[cubeID], a.[cubeName] as cube_name, tostring(a.[startTimeStamp]) as startTimeStamp, tostring(a.[endTimeStamp]) as endTimeStamp, a.[cloudTable] as table_name, 'N/A' as column_name, a.[columnsCount] as column_count, a.[totalRows] as total_rows, a.[duration], a.[buildBehavior] from [buildTableimportEnd] a union all select 'buildCustomTableEnd' as table_source, a.[BuildId] as build_id, a.[cubeID], a.[cubeName] as cube_name, tostring(a.[startTimeStamp]) as startTimeStamp, tostring(a.[endTimeStamp]) as endTimeStamp, a.[cloudTable] as table_name, 'N/A' as column_name, a.[columnsCount] as column_count, a.[totalRows] as total_rows, a.[duration], 'sync' as build_behavior from [buildCustomTableEnd] a