Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: rebecca_robareYou know, I went back and looked at it, and it seems to be functioning in a different way from being the primary key for that table. So I don't think I should split on it at all -- but I'm glad to know how to change the data types anyway!
Originally posted by: ryeh
Hi, Rebecca! Good to see you on the forums. What you'll need to do is something like:
emit 'DIM_ORDER_KEY'.int() as ORDERKEY
When you specified ORDERKEY.int, it was being taken as a string, hence the ORDERKEY.int field name.
On a side note, if you're hash-splitting, is there another field that you could use to split?