버전 7.1로 업그레이드

이 가이드에는 기존 Google Cloud Cortex Framework 버전 7.0.x 배포를 버전 7.1.0으로 업그레이드할 때 필요한 버전별 변경사항과 마이그레이션 작업이 나와 있습니다. Cortex Framework 업그레이드의 표준 워크플로와 함께 다음 안내를 따르세요. /upgrade-cortex 에이전트 기술을 실행하여 구성 파일을 자동으로 검사하고 업데이트할 수도 있습니다.

Python은 3.13(>=3.13,<3.14)로 유지됩니다. 버전 8.0에서 삭제될 예정인 지원 중단된 항목은 Cortex Framework 지원 중단을 참조하세요.

다음 표를 사용하여 배포에 적용되는 섹션으로 바로 이동합니다.

배포에서 사용하는 항목에 따라 다음을 따르세요. 검토
모든 버전 7.0.x 설정 구성 및 CLI 변경사항
SAP ERP 데이터 제품 브레이킹 SAP 열 변경사항 및 전체 새로고침 및 동작 변경사항 및 분리된 객체
커스텀 tableSettings 재정의 맞춤 table_settings.yaml 업데이트
커스텀 모듈 또는 Python 빌더 커스텀 고객 데이터 제품 및 Python 빌더 이전

구성 및 CLI 변경사항

빌드하기 전에 2단계: 구성, 맞춤 설정, 확장 프로그램 업데이트 중에 이러한 업데이트를 적용합니다.

네임스페이스 검색

  • 기본 제공 네임스페이스: 기본 제공 data.namespaces 항목(cortex, cortex_samples, cortex_v6_compatibility)에서 path를 생략합니다(예: - name: cortex).
  • 허용 목록 동작: 이제 data.namespaces가 설정되면 엄격한 허용 목록이 됩니다(namespaces: []는 네임스페이스를 사용 설정하지 않고 namespaces: null는 유효성 검사에 실패함). 사용 설정된 모듈이 참조하는 모든 기본 제공 및 로컬 커스텀 네임스페이스를 나열하거나 data.namespaces를 생략하여 설치된 패키지만 자동 검색합니다.

데이터 품질 어설션

  • 기본적으로 사용 설정됨(data.assertionsEnabled: true): Google Cloud프로젝트를 공유할 때 배포당 고유한 data.defaultAssertionDataset를 설정하고(그렇지 않으면 기본 dataform_assertions 데이터 세트가 배포 간에 충돌할 수 있음) CI/CD에서 --create-datasets를 uv run cortex-deploy에 전달합니다. 선택 해제하려면 data.assertionsEnabled: false를 설정합니다.
  • 심각도 태그: data.assertionSeverities 및 data.defaultAssertionSeverity를 함께 구성하거나 둘 다 생략합니다.

타겟 및 카탈로그 설정

  • type: generic 타겟 삭제됨: type: generic 항목을 삭제하거나 type: git로 바꿉니다(type: git에는 targetSettings.authorEmail, 전역 git config user.email 또는 GIT_AUTHOR_EMAIL 및 GIT_COMMITTER_EMAIL를 모두 사용하는 커밋 이메일이 필요함).
  • 전체 세그먼트 ignoredPaths 일치: type: dataform 타겟에서 targetSettings.ignoredPaths(기본값 ["definitions/custom"])가 이제 프리픽스 대신 전체 경로 세그먼트와 일치합니다. 관리되지 않는 파일을 definitions/custom/ 아래로 이동하거나 definitions/custom_*과 같은 경로를 ignoredPaths에 추가하여 uv run cortex-deploy에서 삭제하지 않도록 합니다.
  • 카탈로그 tableSettings 허용 목록: 필요한 모든 소스 테이블이 나열되도록 카탈로그 tableSettings 파일(tables: / variants:)을 업데이트합니다.

CLI 변경사항

버전 7.0.x 버전 7.1
uv run cortex-build --create-datasets --create-datasets(및 선택사항인 -y/--yes)를 uv run cortex-deploy 또는 uv run cortex-build-and-deploy에 전달합니다.
uv run cortex-deploy --assertions --assertions를 uv run cortex-build 또는 uv run cortex-build-and-deploy에 전달합니다.
uv run cortex-kc-sync 및 --data-modules-root-directory uv run cortex-create-kc-data-products를 사용하고 data.namespaces에서 네임스페이스를 선언합니다.
uv run cortex-demo(SAP 전용 기본값, snake_case 플래그) 기본값은 --sources all(7.0.x 범위를 유지하려면 --sources sap 전달)이며 대시 케이스 플래그가 있습니다. uv run cortex-demo를 참고하세요.

커스텀 table_settings.yaml 업데이트

업그레이드 전반의 맞춤 table_settings.yaml 동작을 따르고 다음 버전 7.1 업데이트를 적용합니다.

  • 데이터 제품: 복사된 파일을 명시적 재정의로 축소합니다. 특히 sales_document_flow의 오래된 materializationType: incremental 재정의(동작 변경사항 및 분리된 객체 참고)와 변경되지 않은 dataformTags(예: billing_document_headers 및 billing_document_items가 monthly에서 hourly로 변경됨)를 축소합니다.
  • 데이터 기반: 추가된 ECC 테이블(faglflext, glt0) 및 기본 어설션(makt, vbak)을 유지하기 위해 커스텀 SAP 기반 파일을 버전 7.1 table_settings.default.yaml과 비교합니다.
  • 시간 파티셔닝: 지원 중단된 partitionType: DATE | DATETIME | TIMESTAMP를 partitionType: time 및 dataType: DATE | DATETIME | TIMESTAMP로 바꿉니다.

브레이킹 SAP 열 변경사항 및 전체 새로고침

버전 7.1은 SAP 데이터 제품 열 서픽스를 정확한 SAP 데이터 사전(DDIC) 필드 이름에 맞추고 23개의 증분 SAP 제품 테이블에서 핵심이 아닌 SAP IS-Fashion(*_fsh_*) 부가기능 열을 삭제합니다.

SAP 열 이름 바꾸기 및 삭제 참조

펼쳐서 23개 테이블 SAP 열 이름 바꾸기 및 삭제 맵 보기

데이터 제품 테이블 SAP 버전 버전 7.0.x 열 버전 7.1 열 또는 상태
accounts_payable accounts_payable S/4HANA bus_transac_type_bttype
condition_contract_coco_number
inventory_movement_category_invoice_mov_categ
service_document_type_service_document_type
service_document_service_document_id
service_document_item_service_document_item_id
partner_service_document_type_pservice_document_type
partner_service_document_pservice_document_id
partner_service_document_item_pservice_document_item_id
company_code_for_budget_account_bdgt_account_company_code
business_transaction_category_bttype
condition_contract_coco_num
inventory_movement_category_inv_mov_categ
service_document_type_service_doc_type
service_document_service_doc_id
service_document_item_service_doc_item_id
partner_service_document_type_pservice_doc_type
partner_service_document_pservice_doc_id
partner_service_document_item_pservice_doc_item_id
company_code_for_budget_account_bdgt_account_cocode
accounts_receivable accounts_receivable S/4HANA 이전 행의 accounts_payable과 동일한 10개 열 이전 행의 accounts_payable과 동일한 이름이 바뀐 열 10개
addresses addresses ECC, S/4HANA flag_x400flagcomm8 flag_x400_flagcomm8
bill_of_materials bill_of_materials_items ECC, S/4HANA deviation_values_fsh_vmkz, quantity_distribution_profile_fsh_pgqr, quantity_distribution_profile_reference_fsh_pgqrrf, critical_component_fsh_critical_comp, critical_level_fsh_critical_level 삭제됨(IS-Fashion 부가기능)
billing_documents billing_document_items ECC, S/4HANA season_year_fsh_season_year, season_fsh_season, collection_fsh_collection, theme_fsh_theme 삭제됨(IS-Fashion 부가기능)
customers customers ECC, S/4HANA name_of_representative_j_1_kfrepre
type_of_business_j_1_kftbus
type_of_industry_j_1_kftind
name_of_representative_j_1kfrepre
type_of_business_j_1kftbus
type_of_industry_j_1kftind
delivery_documents delivery_document_headers ECC number_category_1_rpfaess
number_category_2_rpkist
number_category_3_rpcont
number_category_4_rpsonst
loading_sequence_number_rpflgnr
number_category_1_bev1_rpfaess
number_category_2_bev1_rpkist
number_category_3_bev1_rpcont
number_category_4_bev1_rpsonst
loading_sequence_number_bev1_rpflgnr
delivery_documents delivery_document_headers S/4HANA header_customer_reserve_status1_suvk01~5_suvk05
item_customer_reserve_status1_suvs01~5_suvs05
header_customer_reserve_status1_uvk01~5_uvk05
item_customer_reserve_status1_uvs01~5_uvs05
delivery_documents delivery_document_items ECC, S/4HANA cfop_code_and_extension_j_1_bcfop
tax_law_icms_j_1_btaxlw1
tax_law_ipi_j_1_btaxlw2
iss_tax_law_j_1_btaxlw3
cofins_tax_law_j_1_btaxlw4
pis_tax_law_j_1_btaxlw5
sd_tax_code_j_1_btxsdc
cfop_code_and_extension_j_1bcfop
tax_law_icms_j_1btaxlw1
tax_law_ipi_j_1btaxlw2
iss_tax_law_j_1btaxlw3
cofins_tax_law_j_1btaxlw4
pis_tax_law_j_1btaxlw5
sd_tax_code_j_1btxsdc
inventory_and_special_stocks sales_order_stock ECC season_year_fsh_season_year, season_fsh_season, collection_fsh_collection, theme_fsh_theme, allocated_stock_quantity_fsh_salloc_qty 삭제됨(IS-Fashion 부가기능)
inventory_and_special_stocks special_stocks_from_vendor ECC sales_order_stock와 동일한 5개의 *_fsh_* 열 삭제됨(IS-Fashion 부가기능)
inventory_and_special_stocks special_stocks_with_customer ECC sales_order_stock와 동일한 5개의 *_fsh_* 열 삭제됨(IS-Fashion 부가기능)
production_orders production_order_header ECC, S/4HANA master_production_order_fsh_mprod_ord 삭제됨(IS-Fashion 부가기능)
production_orders production_order_item ECC, S/4HANA season_year_fsh_season_year, season_fsh_season, collection_fsh_collection, theme_fsh_theme, allocated_stock_quantity_fsh_salloc_qty 삭제됨(IS-Fashion 부가기능)
purchasing_documents purchasing_document_account_assignments S/4HANA service_document_type_service_document_type
service_document_service_document_id
service_document_item_service_document_item_id
service_document_type_service_doc_type
service_document_service_doc_id
service_document_item_service_doc_item_id
purchasing_documents purchasing_document_headers ECC, S/4HANA discount_days1_zbd1_t, discount_days2_zbd2_t, discount_days3_zbd3_t
cash_discount_percentage1_zbd1_p, cash_discount_percentage2_zbd2_p
logical_system_logsy
discount_days1_zbd1t, discount_days2_zbd2t, discount_days3_zbd3t
cash_discount_percentage1_zbd1p, cash_discount_percentage2_zbd2p
logical_system_logsys
purchasing_documents purchasing_document_items ECC, S/4HANA inflation_index_j_1_aindxp
inflation_index_date_j_1_aidatep
inflation_index_j_1aindxp
inflation_index_date_j_1aidatep
purchasing_documents purchasing_document_types ECC 9 *_fsh_* 열: vas_active_flag_fsh_vas_act, determination_procedure_fsh_vas_kalsm, vas_deletion_criteria_fsh_vas_del, vas_determination_date_fsh_vas_detdt, excl_return_items_fsh_excl_return, determination_procedure_fsh_var_kalsm, determination_procedure_fsh_dpr_detpro, generic_material_creation_fsh_po_idoc, auto_distribution_fsh_auto_dc 삭제됨(IS-Fashion 부가기능)
purchasing_documents purchasing_document_types S/4HANA 동일한 9개의 ECC *_fsh_* 열과 vas_quantity_correlation_fsh_vas_corr 및 variants_optional_fsh_vm_act(총 11개) 삭제됨(IS-Fashion 부가기능)
purchasing_documents purchasing_document_vendor_confirmations ECC, S/4HANA allocated_stock_quantity_fsh_salloc_qty 삭제됨(IS-Fashion 부가기능)
purchasing_documents purchasing_documents_history ECC, S/4HANA logical_system_logsy (ECC, S/4HANA)
quantity_quantity_diff (S/4HANA)
season_year_fsh_season_year, season_fsh_season, collection_fsh_collection, theme_fsh_theme (ECC, S/4HANA)
logical_system_logsys(ECC, S/4HANA)
quantity_qty_diff(S/4HANA)
삭제됨(IS-Fashion 부가기능)
universal_journal universal_journal_entry_line_items S/4HANA business_transaction_type_bttype
custom_business_transaction_type_not_used_yet_cbttype
account_assignment_type_accasty
partner_account_assignment_type_paccasty
business_transaction_category_bttype
business_transaction_type_cbttype
object_type_accasty
partner_object_type_paccasty
vendor_invoices vendor_invoice_headers ECC, S/4HANA logical_system_logsy logical_system_logsys(줄바꿈 없는 company_code_bukrs도 추가됨)
vendor_invoices vendor_invoice_items ECC, S/4HANA season_year_fsh_season_year, season_fsh_season, fashion_collection_fsh_collection, fashion_theme_fsh_theme 삭제됨(IS-Fashion 부가기능, 줄바꿈 없는 company_code_bukrs도 추가됨)
vendors vendors ECC, S/4HANA name_of_representative_j_1_kfrepre
type_of_business_j_1_kftbus
type_of_industry_j_1_kftind
name_of_representative_j_1kfrepre
type_of_business_j_1kftbus
type_of_industry_j_1kftind

일회성 전체 새로고침을 위한 추가 테이블

해당하는 경우 다음 증분 테이블에서 일회성 타겟팅 전체 새로고침(타겟팅 전체 새로고침 실행)을 실행합니다.

  • 첫 번째 버전 7.1 증분 실행(S/4HANA) 전 또는 실행 시 필요: material_documents(cortex.sap.products.materials_movement)는 13개의 MATDOC 재고 열을 추가하고 uniqueKey를 material_document_record_type로 확장합니다.
  • 소수점 이하 두 자리가 아닌 통화(TCURX 확장)를 게시할 때 필요: asset_annual_cumulative_balances(S/4HANA) 및 vendor_open_items, vendor_cleared_items, customer_open_items, customer_cleared_items(ECC) (accounts_payable, accounts_receivable, purchasing_document_headers는 위의 23개 테이블 목록에 이미 있습니다.)
  • sales_performance SAP ERP 샘플을 사용 설정하는 경우 필수: sales_performance(cortex_samples.sap.products.sales_performance, customers 후 새로고침)는 새 signed_net_value_bounds 어설션으로 검증된 signed_net_value_in_document_currency와 같은 v7.1 열을 추가합니다(매출 실적 통계 참조).

이러한 증분 테이블에서 일회성 전체 새로고침을 실행하여 버전 7.0.x 조인 및 null 허용 LEFT JOIN 고유 키 결함에서 기존 중복 항목을 삭제합니다.

  • 고객, 공급업체, 주소 조인: business_partner_addresses, business_partner_bank_details, 다운스트림 supplier_spend_analysis(vendors 후 새로고침)
  • 강화된 uniqueKey(ECC, S/4HANA): vendor_invoice_account_assignments 및 countries
  • 보호된 null 허용 LEFT JOIN 고유 키(ECC, S/4HANA): asset_transaction_types, cost_elements, cost_centers, profit_centers, currency_codes, set_headers, depreciation_terms, fixed_assets_master, general_ledger_accounts, country_tax_regions, languages, ledger_master, material_cross_plant_batches, material_plant_batches, material_batch_stocks, material_plants, material_movement_types, flattened_product_hierarchies, project_structure, distribution_channels, divisions, sales_organizations, units_of_measurement
  • 보호된 null 허용 LEFT JOIN 고유 키(ECC만 해당): special_stocks_with_vendor.
  • 보호된 null 허용 LEFT JOIN 고유 키(S/4HANA만 해당): financial_hierarchy_nodes 및 group_journal_entries(클러스터링도 추가됨)

동작 변경사항 및 분리된 객체

  • sales_document_flow 구체화: ECC 및 S/4HANA에서 기본 materializationType가 incremental에서 table로 변경되어 청구되지 않은 아웃바운드 배송이 계속 표시됩니다(행 수 증가). 컴파일하기 전에 오래된 materializationType: incremental 재정의를 삭제합니다. uniqueKeys가 없는 incremental 모델에서는 컴파일이 실패하기 때문입니다. --full-refresh는 필요하지 않습니다.
  • 분리된 S/4HANA 테이블: materials_by_storage_location가 cortex.sap.products.materials에서 ECC 전용 cortex.sap.products.inventory_and_special_stocks로 이동했습니다. S/4HANA에서 다운스트림 소비자가 쿼리하지 않는지 확인한 후 기존 PRODUCT_DATASET.materials_by_storage_location 테이블(및 다른 사용 설정된 S/4HANA 제품에서 참조하지 않는 경우 사용되지 않는 mard, mbew, mbewh 또는 t001l 기반 테이블)을 삭제합니다.
  • 기존 데이터에 대한 어설션: 일회성 전체 새로고침을 완료할 때까지 업그레이드 전 중복 행에서 기본 어설션이 실패할 수 있습니다. 심각도 태그는 severity_LEVEL를 내보내고 차단 동작은 규칙별로 설정됩니다(blocking: true).

커스텀 데이터 제품 및 Python 빌더 마이그레이션

커스텀 모듈 또는 Python 빌더를 유지관리하는 경우 빌드하기 전에 다음 업데이트를 적용합니다(전체 참조는 확장성 가이드 참고).

커스텀 YAML 및 JavaScript 데이터 제품

  • publisher.publish() / publisher.operate() 사용: 차단 어설션과 행/열 수준 보안 후크가 실행되도록 기본 publish(...) 및 operate(...) 호출을 const publisher = require("includes/publisher.js");로 바꿉니다.
  • incremental.getFilter() 호출 업데이트: 옵션 객체({ targetColumn: "..." } 또는 { timestampColumn: "..." }) 또는 알려진 소스 유형 약식("sap", "sfdc" 또는 "salesforce")을 세 번째 인수로 전달합니다. 다른 문자열은 이제 오류를 발생시킵니다.
  • 명시적으로 어설션 선언: 버전 7.0.x 암시적 키 어설션을 table_settings.default.yaml의 assertions.standardRules로 바꿉니다(데이터 품질 어설션 참조).
  • 지원 중단된 키 및 빌더 별칭 정리: manifest.yaml에서 type:를 삭제하고 config/config.yaml에서 moduleType:를 삭제합니다. 지원 중단된 별칭(generic_product, composite_product, generic_composite_product, sap_bdc_product → flat_product, sfdc → sfdc_foundation)을 대체합니다. flat_product는 기본적으로 incremental로 설정되지만 기존 generic_product/composite_product는 기본적으로 table로 설정되므로 materializationType를 명시적으로 설정하거나 uniqueKeys를 제공합니다.

커스텀 Python 빌더

  • common.sdk에서 가져오기: common.builders.*, common.schemas.*, 삭제된 common.registry 가져오기를 common.sdk로 바꿉니다.
  • 구체적인 서브클래스 사용: ProductBuilder[DataProductModuleConfig]가 아닌 FlatProductBuilder 또는 FoundationBuilder를 직접 서브클래스로 지정하고 build()에서 (self, node, ctx)를 허용합니다.
  • 프로그래매틱 빌더에 table_settings_schema = None 설정: FlatProductBuilder를 서브클래스로 분류하는 빌더는 기본적으로 table_settings 파일을 예상합니다. 빌더가 파일 없이 SQL을 생성하는 경우 table_settings_schema = None를 설정합니다.
  • 빌더 재배치: 지원 중단된 청사진 로컬 ./builder.py 모듈을 manifest.yaml에서 참조되는 plugin_id가 있는 NAMESPACE/builders/로 이동하고 네임스페이스 트리 내의 __init__.py 파일을 삭제합니다.

다음 단계