Slackbot
03/07/2023, 2:55 PMGian Merlino
03/07/2023, 2:57 PMday. you can mix granularities in the same datasource, so this will work, but IMO it's easier to manage if you stick to a single granularityGian Merlino
03/07/2023, 2:57 PMGian Merlino
03/07/2023, 2:57 PMPARTITIONED BY DAYGian Merlino
03/07/2023, 2:58 PMOVERWRITE WHERE __time >= TIMESTAMP '2021-12-01 00:00:00' AND __time < TIMESTAMP '2021-12-10 00:00:00'Giwrgos Gkοlfopoulos
03/07/2023, 3:02 PMJohn Kowtko
03/07/2023, 3:30 PMDavid McHealy
03/07/2023, 3:45 PMGian Merlino
03/07/2023, 6:52 PMappendToExisting: falseGian Merlino
03/07/2023, 6:52 PMDavid McHealy
03/07/2023, 7:45 PMJohn Kowtko
03/07/2023, 7:48 PMGiwrgos Gkοlfopoulos
03/08/2023, 7:49 AMJohn Kowtko
03/08/2023, 12:53 PMGian Merlino
03/08/2023, 6:15 PMMixed segment granularity means that the datasource overall can have mixed granularity in it over time ... I don't know that it allows mixed for inserting (appending) new data through ingestion ... hopefully someone else can confirm.appending does require using a segment granularity that is aligned with the existing segment granularities (whatever they may be) replacing doesn't require that; you can use any granularity you want for the new data. It will overshadow the older segments, perhaps partially (for example: if you have a MONTH segment and you insert a single DAY that partially covers it, then Druid will use the MONTH segment for all other days, but ignore that one day; instead, it'll use the new DAY segment you inserted.) i do feel it's generally simpler to keep a consistent segment granularity for a given datasource, so i do encourage that. however if you keep the above ☝️ in mind you can definitely mix them if you like
Giwrgos Gkοlfopoulos
03/09/2023, 7:42 AMBrandon Tan
03/09/2023, 8:45 AMREPLACE INTO "trips_month" OVERWRITE WHERE "__time" >= TIMESTAMP '2013-08-02 00:00:00' and "__time"< TIMESTAMP '2013-08-03 00:00:00', I am able to insert 1 DAY partitioned segment into a DS with MONTH segment granularity:Brandon Tan
03/09/2023, 8:52 AMREPLACE by DAYGiwrgos Gkοlfopoulos
03/09/2023, 9:26 AMGiwrgos Gkοlfopoulos
03/09/2023, 9:43 AMBrandon Tan
03/09/2023, 9:47 AMGiwrgos Gkοlfopoulos
03/09/2023, 10:05 AMGiwrgos Gkοlfopoulos
03/09/2023, 11:45 AMDavid McHealy
03/09/2023, 1:18 PMJohn Kowtko
03/09/2023, 2:51 PMGiwrgos Gkοlfopoulos
03/09/2023, 2:52 PMJohn Kowtko
03/09/2023, 2:55 PMDavid McHealy
03/09/2023, 3:02 PMJohn Kowtko
03/09/2023, 3:22 PMJohn Kowtko
03/09/2023, 3:24 PMJohn Kowtko
03/09/2023, 3:34 PMDavid McHealy
03/09/2023, 3:50 PMDavid McHealy
03/09/2023, 3:51 PMGiwrgos Gkοlfopoulos
03/09/2023, 4:08 PMJohn Kowtko
03/09/2023, 4:42 PM