SYMPTOM:
When user configuring a report into data mart in Strategy Developer 9.x and 10.x against Vertica 5.0, an error message appears as shown below.

"column "c1" is of type numeric but expression is of type varchar. HINT: You will need to rewrite or cast the expression."



CAUSE:
The SQL to creating the data mart is actually as shown below:

Note: The pass0 is actually ignored.
In pass1, note that a11.c2 will be inserted into c1. The data type of c2 is Verchar(5) while the type of c1 is decimal(10,2) and therefore the data type mismatch.
WORKAROUND: