I have two tables with the same JSON column. My query needs to UNION some rows from both. The problem is that UNION trims the result (see: http://sqlfiddle.com/#!9/506e43/1/1). The solution here (Teradata string truncated after UNION ALL) is to cast the column to CHAR(n) but in my case, this won't work because the length of the result may vary from 200 to 2000 characters (or sometimes more).
Is there a better solution?