dalcuovidiu
New Contributor III

In sql, with a subselect works just fine 

%sql
COPY INTO tabele_copy_into_test from (
  SELECT
    user_id,
    email,
    _metadata.file_name AS source_file
from "/Volumes/dbacademy_ecommerce/v01/raw/users-historical/")
FILEFORMAT = PARQUET
COPY_OPTIONS ('mergeSchema' = 'true');