While debugging a query, I am seeing unexpected behaviour in the LEFT OUTER JOIN
functionality in my Netezza database.
While debugging, I ran this query:
WITH
AA AS
(
SELECT
'12345' AS PID
)
,
BB AS
(
SELECT
'000000' AS POS,
12 AS TransAmt
UNION ALL
SELECT
'55555' AS POS,
30 AS TransAmt
)
SELECT
*
FROM
AA
LEFT OUTER JOIN
BB
ON
AA.PID = BB.POS
But am presented with this error:
[Code: 1100, SQL State: HY000] FATAL 1: GetCCHashFunc: type 705 unsupported as catcache key
Running the same code in MySQL, H2, and BigQuery yields the expected results:
Row PID POS TransAmt
1 12345 null null
Is there a nuance in Netezza that I am missing that is preventing such a left join from completing successfully?