When I try to run the query on VM env. It will generate the error about “Serialization is only allowed for SelectionVectorMode.NONE. This was in SelectionVectorMode.TWO_BYTE”
SQL:
SELECT payment_type, COUNT() AS C
FROM “taxi WIP”.“sample_data”
WHERE trip_distance > 1 AND
passenger_count < 5
GROUP BY payment_type
HAVING COUNT() > 1000
ORDER BY COUNT(*) DESCc460d8a8-b873-453b-8a1f-68ec09c33451.zip (11.6 KB)
UPDATE: if I do this SQL query, I think it works, but I want to understand why.
SELECT day_of_month, C
FROM (
SELECT DATE_PART(‘day’,pickup_datetime) AS day_of_month, COUNT(*) AS C
FROM “Reflections Lab (WIP)”.trips
WHERE vendor_id = ‘VTS’ AND
trip_distance > 1 AND
passenger_count < 5
GROUP BY DATE_PART(‘day’, pickup_datetime)
HAVING C > 150000
) nested_0
ORDER BY C DESC