쿼리 최적화기의 쿼리 재작성 시간 초과 업데이트

쿼리 최적화기의 기본 쿼리 재작성 시간 제한은 60초입니다. 쿼리 최적화기를 활성화한 후 PATCH API를 사용하여 이 값을 변경할 수 있습니다.

프로시저

  1. 다음 PATCH API 명령을 실행하여 쿼리 재작성 시간 초과를 업데이트하십시오:

    curl --request PATCH  \
    --url https://{REGION}.lakehouse.cloud.ibm.com/lakehouse/api/v3/prestissimo_engines/{ENGINE_ID} \
    --header 'accept: application/json' \
     --header 'Content-Type: application/merge-patch+json' \
     --header 'AuthInstanceId: {CRN}' \
    --header 'Authorization: Bearer <BEARER_TOKEN>' \
    -d '{
        "display_name": "prestissimo-small",
        "description": "",
        "properties": {
            "configuration": {
                "coordinator": {
                    "query.max-history": "2000"
                },
                "worker": {
                }
            },
            "jvm": {
                "coordinator": {
                }
            },
            "catalog": {
                "hive_data": {
                    "coordinator": {
                    },
                    "worker": {}
                }
            },
            "velox": {
            },
            "log_config": {
                "coordinator": {
                },
                "worker": {}
            },
            "optimizer_properties": {
                "optplus.query-timeout-seconds":"3000"
    
            },
            "global": {}
        },
        "restart_type": "force",
        "tags": []
    }'
    

    <console-url>: 콘솔 URLwatsonx.data.

    <instance-id> 인스턴스 식별자.

    <engine-id> 엔진 Presto 식별자.

    <auth-instance-id> 인증 인스턴스 ID.

    <token>: 인증을 위한 베어러 토큰.

  2. 값을 원하는 시간 optplus.query-timeout-seconds 초과(초)로 업데이트하십시오.