The SQL inside the macro works fine, but the macro create statement generates 3706: syntax error: expected something between '(' and '('
Any idea why ?
create MACRO OLAPV2_DB.LOCAL_BUNDLE_6
AS
(
DELETE FROM OLAPV2_DB.LU_MIN_DT_SUMMARY
WHERE
MIN_DT = LTRIM(((ADD_MONTHS(DATE,-13) - (EXTRACT (DAY FROM ADD_MONTHS(DATE,-13)) -1))/100 + 190000) (CHAR(11)))
;
);
Any idea why ?
create MACRO OLAPV2_DB.LOCAL_BUNDLE_6
AS
(
DELETE FROM OLAPV2_DB.LU_MIN_DT_SUMMARY
WHERE
MIN_DT = LTRIM(((ADD_MONTHS(DATE,-13) - (EXTRACT (DAY FROM ADD_MONTHS(DATE,-13)) -1))/100 + 190000) (CHAR(11)))
;
);