1 Answer
- Newest
- Most votes
- Most comments
1
Glue can definitely be used for loading dimensional data into Redshift. Approach will depend on what kind of dimension it is (SCD Type). And you can certainly generate surrogate ids in Glue. Example: I have used this in the past.
def customer_id(custid):
x = int(str(hashlib.md5(custid.encode()).hexdigest()[:10]),16)
x = int(x)
return x
However, make sure you follow the logic consistently across different datasets to produce consistent surrogate ids.
Ideally, a staging table should be present and from staging to main table, you can govern the logic through redshift procedure or plain SQL depending upon the complexity.
answered 4 years ago
Relevant content
- asked 6 months ago
- Accepted Answerasked 8 years ago
- asked 2 years ago
- Accepted Answerasked 4 years ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 9 months ago