I am getting error “Brighthouse other specific error: type not supported” when I try to output a date-casted constant into an outfile.
This is a query that illustrates the point, although the issue is not specific to the fx table I’m using, happens with all tables I’ve tried. Same query works with “as unsigned”. Also fails if you cast a date into a date (not that you’d want to, but thought I’d see if it worked). Everything works if you do a normal select rather than an “into outfile”.
select Cast(20100714 as Date) as COBDate
into outfile ‘f:/foo.csv’
FIELDS TERMINATED BY ‘,’ ENCLOSED BY ‘\”’
LINES TERMINATED BY ‘\n’
from fx f
limit 10;
Any help much appreciated.
