For a DeltaTarget, glue.create_crawler is not recognizing the parameter "CreateNativeDeltaTable"

0

Unknown parameter in Targets.DeltaTargets[0]: "CreateNativeDeltaTable", must be one of: DeltaTables, ConnectionName, WriteManifest.

However, in the documentation it shows the parameter (see DeltaTarget): boto3 docs

import boto3

glue = boto3.client('glue')

glue.create_crawler(
  Name='mycrawler',
  Role='myrole', 
  DatabaseName='mydb',
  Targets={
    'DeltaTargets': [
        {
            'DeltaTables': [
                's3://my/delta/table/location',
            ],
            'ConnectionName': '',
	    'WriteManifest': False,
	    'CreateNativeDeltaTable': True,
        }
    ]
  },
  SchemaChangePolicy={
    'UpdateBehavior': 'LOG',
    'DeleteBehavior': 'LOG'
  }
)


temp999
질문됨 4달 전160회 조회
1개 답변
1
수락된 답변

Hi,

This issue generally happens with the boto3 version. I tested this on my end and was facing the same issue as yours. Please use the latest boto3 version to resolve this issue. I used the 1.28.69 version and it works fine. Please pass the below parameter in "Job parameters" tab under job details to use the latest boto3 version.

Key: --additional-python-modules
Value: boto3==1.28.69

Thank you.

AWS
지원 엔지니어
답변함 4달 전

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

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

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

관련 콘텐츠