Skip to content
Advertisement

How do I complete a cross join with redshift?

I have two tables. One has a user ID and a date and another has a list of dates.

I’m getting this error with redshift Error running query: Specified types or functions (one per INFO message) not supported on Redshift tables.

Can I do a cross join with redshift?

Advertisement

Answer

Alas, Redshift supports generete_series() but only in a very limited way — on the master processing node. That basically renders it useless.

Assuming you have a table with enough rows, you can use that:

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement