How to remove default partition (__dt='yyyy-mm-dd 00:00:00') created by IoT Analytics datastore mapped to s3 ?

0

Hi Community, Looking for some help with IoT Analytics datastore(s3) partitions. Currently my pipeline routes all the messages to datastore on s3 (customer managed storage) with no custom partitions set.

Here is how they look on s3:

s3://my-bucket/datastore/mydataset/
        __dt=2023-05-23 00:00:00/		
        __dt=2023-05-24 00:00:00/

When I use custom partitions they go under the root partition __dt:

s3://my-bucket/datastore/mydataset/__dt=2023-05-23 00:00:00/
      __partition_device_id=j3e2f83a9A32l_mn/	
      __partition_device_id=JT01WrHb1bthC0B8/
      __partition_device_id=NH6cRS38oPWJQh0k/

The partition by __dt is auto-generated. But I do not want to have this partition for two reasons:

  1. The timestamp is not from my iot event data
  2. Athena has a known issue reading from partitions that have colon(:) in the partition name (this is as per the official docs).

Looking for help if there is a way to remove this default partition and then create my own custom partition as root partition

1개 답변
0

Here is information about Custom Partition in AWS IOT Analytics:

https://docs.aws.amazon.com/iotanalytics/latest/userguide/custom-partitioning.html

AWS
vtjean
답변함 일 년 전
  • Hi @vtjean, thanks for the answer, but my question is not about custom partitions (I already applied them and you can see the example code in my question). I want to disable the default '__dt' partition applied by AWS automatically.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인