0

구글 bigquery로드 작업에서 "인용 된 줄 바꾸기 허용"속성을 활성화 할 수 없습니다.파이썬을 사용하여 bigquery에서 인용 된 뉴 라인 속성을 허용 할 수 없습니까?

configuration = { 
     'load': { 
      'createDisposition': create_disposition, 
      'destinationTable': { 
       'projectId': destination_project, 
       'datasetId': destination_dataset, 
       'tableId': destination_table, 
      }, 
      'schema': { 
       'fields': schema_fields 
      }, 
      'sourceFormat': source_format, 
      'sourceUris': source_uris, 
      'writeDisposition': write_disposition, 
      'allowJaggedRows': True, 
      'allowQuotedNewlines': True, 
      'ignoreUnknownValues': True 
     } 
    } 

    if source_format == 'CSV': 
     configuration['load']['skipLeadingRows'] = skip_leading_rows 
     configuration['load']['fieldDelimiter'] = field_delimiter 
     configuration['load']['encoding'] = 'UTF-8' 
     configuration['load']['quote'] = '' 

jobs = self.service.jobs() 
     job_data = { 
      'configuration': configuration 
     } 
query_reply = jobs \ 
      .insert(projectId=self.project_id, body=job_data) \ 
      .execute() 
     job_id = query_reply['jobReference']['jobId'] 
     job = jobs.get(projectId=self.project_id, jobId=job_id).execute() 

그러나 재산 'allowQuotedNewlines' 사실은 작동하지 않습니다. bigquery UI (웹보기)를 사용하여 검사했을 때이 속성은 선택되지 않았습니다.

enter image description here

내가 뭔가를 놓친 건가? 이슈가 뭐야?

답변

0

봅니다 [ '로드'] [ '인용'] = ''

당신이 인용 줄 바꿈을 허용 할 경우, 비어 있지 않은 인용 문자를 지정해야 행 구성을 제거합니다.

관련 문제