Hello @balaji.ramaswamy sure this is the DDL
CREATE TABLE lake.prod.posts
(
ID varchar,
ID_POST varchar,
ID_PAGE varchar,
ENGAGEMENT double,
CREATED_DATE_STR varchar,
MODIFIED_DATE_STR varchar,
TIMESTAMP_DATE timestamp,
INTERACTIONS integer,
SHARES integer,
SENTIMENT varchar,
GENDER varchar,
IS_ROOT integer,
USERNAME varchar,
NAME varchar,
REGION varchar,
PROVINCE varchar,
CITY varchar,
CONTEXT varchar,
USERNAME_COMMENTS varchar,
COMMENTS integer,
REACTIONS_POST integer,
SORRY_COMPARATIVE integer,
ANGER_COMPARATIVE integer,
HAHA_COMPARATIVE integer,
LOVE_COMPARATIVE integer,
WOW_COMPARATIVE integer,
LIKE_COMPARATIVE integer,
TEXT varchar,
PUBLICATION_TYPE varchar,
PUBLICATION_TYPE_COAUTHOR integer,
VIDEO_VIEWS integer,
CONCEPTS varchar ARRAY,
EMOJIS varchar ARRAY,
VERBS varchar ARRAY,
HASHTAGS varchar ARRAY,
RED integer,
RED_NAME varchar,
TYPE varchar,
IS_RT integer,
MEDIA varchar,
AGE varchar,
EMOTIONS integer,
PERSONALITY integer,
TALK_CATEGORY integer,
IMPRESSIONS_PAID integer,
IMPRESSIONS_ORGANIC integer,
IMPRESSION_TOTAL integer,
REACH_TOTAL integer,
CLICKS_TOTAL integer,
CREATED_DATE timestamp,
MODIFIED_DATE timestamp
)
--@formatter:off
partition by (bucket( 300, ID_PAGE ), TYPE, month(CREATED_DATE));