Skip to content

Commit 4e647bc

Browse files
authored
chore(pipelines): Rename Opralog user_entries to entries to match source (#168)
### Summary No longer using the tool that prevented using the original name. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Release Notes * **Chores** * Updated Opralogweb entries table naming and removed associated configuration workarounds from staging models. * Simplified source definitions by removing unused table entries. <sub>✏️ Tip: You can customize this high-level summary in your review settings.</sub> <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent 89a6619 commit 4e647bc

6 files changed

Lines changed: 11 additions & 15 deletions

File tree

warehouses/accelerator/extract_load/opralogweb/.dlt/config.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ schema = "dbo"
88

99
[[sources.sql_database.tables]]
1010
name = "Entries"
11-
# Spark seems to have an issue with seeing a table named 'entries' regardless of the namespace it is in
12-
# so we rename it
13-
destination_name = "user_entries"
1411
incremental_id = "EntryId"
1512
html_to_markdown_columns = ["AdditionalComment"]
1613

warehouses/accelerator/transform/accelerator/models/staging/opralogweb/_opralogweb__sources.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version: 2
33
sources:
44
- name: src_opralogweb
55
tables:
6-
- name: user_entries
6+
- name: entries
77
- name: chapter_entry
88
- name: logbook_chapter
99
- name: logbooks

warehouses/accelerator/transform/accelerator/models/staging/opralogweb/base/base_opralogweb__user_entries.sql renamed to warehouses/accelerator/transform/accelerator/models/staging/opralogweb/base/base_opralogweb__entries.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ with
22

33
source as (
44

5-
select * from {{ source('src_opralogweb', 'user_entries') }}
5+
select * from {{ source('src_opralogweb', 'entries') }}
66

77
),
88

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
models:
2+
- name: base_opralogweb__entries
3+
description: >
4+
Opralogweb "entries" table with basic cleaning.
5+
columns:
6+
- name: entry_id
7+
tests:
8+
- not_null

warehouses/accelerator/transform/accelerator/models/staging/opralogweb/base/base_opralogweb__user_entries.yml

Lines changed: 0 additions & 9 deletions
This file was deleted.

warehouses/accelerator/transform/accelerator/models/staging/opralogweb/stg_opralogweb__mcr_equipment_downtime.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
with
55

6-
staging_entries as ( select * from {{ ref('base_opralogweb__user_entries') }} ),
6+
staging_entries as ( select * from {{ ref('base_opralogweb__entries') }} ),
77

88
staging_chapter_entry as ( select * from {{ ref('base_opralogweb__chapter_entry') }} ),
99

0 commit comments

Comments
 (0)