This example is like Example: Creating Foreign Table with PATHPATTERN except for the character set of the Payload column—LATIN instead of UNICODE.
CREATE FOREIGN TABLE Statement
CREATE MULTISET FOREIGN TABLE sensordata (
Location VARCHAR(2048) CHARACTER SET UNICODE CASESPECIFIC,
Payload JSON(16776192) INLINE LENGTH 64000 CHARACTER SET LATIN
)
USING (
LOCATION ('/S3/YOUR-BUCKET.s3.amazonaws.com/data/logs')
PATHPATTERN ('$Var1/$Var2/$var3/$Var4/$date')
)
NO PRIMARY INDEX;