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
feita há 4 meses160 visualizações
1 Resposta
1
Resposta aceita

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
ENGENHEIRO DE SUPORTE
respondido há 4 meses

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas