I came across the
bug #4444 related to export feature for queries.
I'm not sure how exactly this feature is supposed to behave if we are exporting rows with some but not all columns and also in case we have aliases and even when we have join queries.
Assume we have tables:
actor (actor_id, first_name, last_name, city_id) with actor_id as primary key.
address (address_id, adress, city_id, city_id, district, postal_code, phone) with address_id as primary key and phone have not null unique constraints.
1. when we select some but not all columns ex,