-
Notifications
You must be signed in to change notification settings - Fork 3
#679 Add Iceberg and Delta table names to the catalog table name column in notifications #680
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#679 Add Iceberg and Delta table names to the catalog table name column in notifications #680
Conversation
WalkthroughAdded a method to produce unescaped short table identifiers, captured those identifiers for Iceberg/Delta outputs in TransformationJob save results, extended SaveResult to carry hive table updates, and changed a success log emoji in notification sending. Changes
Sequence Diagram(s)sequenceDiagram
participant Job as TransformationJob
participant Catalog as CatalogTable
participant Save as SaveResult
participant Notify as Sendable
Job->>Catalog: call getShortUnescapedTableName (for Iceberg)
Job->>Job: build outputCatalogTable (Iceberg/Delta handling)
Job->>Save: construct SaveResult(stats, warnings, hiveTablesUpdates)
Job->>Notify: trigger notification with SaveResult
Notify->>Notify: log success (ROCKET)
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~30 minutes
Poem
Pre-merge checks and finishing touches✅ Passed checks (5 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (4)
🚧 Files skipped from review as they are similar to previous changes (2)
🧰 Additional context used🧠 Learnings (1)📚 Learning: 2025-06-18T08:27:21.504ZApplied to files:
🧬 Code graph analysis (1)pramen/core/src/main/scala/za/co/absa/pramen/core/pipeline/TransformationJob.scala (4)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (8)
🔇 Additional comments (2)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (4)
pramen/api/src/main/scala/za/co/absa/pramen/api/CatalogTable.scala(1 hunks)pramen/api/src/test/scala/za/co/absa/pramen/api/CatalogTableSuite.scala(1 hunks)pramen/core/src/main/scala/za/co/absa/pramen/core/notify/Sendable.scala(1 hunks)pramen/core/src/main/scala/za/co/absa/pramen/core/pipeline/TransformationJob.scala(2 hunks)
🧰 Additional context used
🧬 Code graph analysis (2)
pramen/api/src/test/scala/za/co/absa/pramen/api/CatalogTableSuite.scala (1)
pramen/api/src/main/scala/za/co/absa/pramen/api/CatalogTable.scala (4)
CatalogTable(19-37)CatalogTable(39-60)getFullTableName(27-31)getShortUnescapedTableName(33-36)
pramen/core/src/main/scala/za/co/absa/pramen/core/pipeline/TransformationJob.scala (4)
pramen/api/src/main/scala/za/co/absa/pramen/api/DataFormat.scala (1)
DataFormat(30-105)pramen/api/src/main/scala/za/co/absa/pramen/api/Query.scala (1)
Query(28-56)pramen/api/src/main/scala/za/co/absa/pramen/api/CatalogTable.scala (1)
getShortUnescapedTableName(33-36)pramen/core/src/main/scala/za/co/absa/pramen/core/pipeline/SaveResult.scala (1)
SaveResult(21-26)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (8)
- GitHub Check: Test Coverage on Scala 2.12.18
- GitHub Check: Test Spark 3.4.4 on Scala 2.13.16
- GitHub Check: Test Spark 3.5.5 on Scala 2.12.20
- GitHub Check: Test Spark 3.5.5 on Scala 2.13.16
- GitHub Check: Test Spark 2.4.8 on Scala 2.11.12
- GitHub Check: Test Spark 3.3.4 on Scala 2.12.20
- GitHub Check: Test Spark 3.3.4 on Scala 2.13.16
- GitHub Check: Test Spark 3.4.4 on Scala 2.12.20
🔇 Additional comments (4)
pramen/core/src/main/scala/za/co/absa/pramen/core/notify/Sendable.scala (1)
89-89: LGTM!The emoji change from VOLTAGE to ROCKET better represents the action of sending an email notification.
pramen/api/src/main/scala/za/co/absa/pramen/api/CatalogTable.scala (1)
33-36: LGTM!The new
getShortUnescapedTableNamemethod correctly returns the short form (database.table or just table) without escape characters or catalog prefix, fulfilling the PR objective to provide table names for notifications.pramen/api/src/test/scala/za/co/absa/pramen/api/CatalogTableSuite.scala (1)
74-124: LGTM!Comprehensive test coverage for both
getFullTableNameandgetShortUnescapedTableNamemethods, covering all combinations of catalog and database presence. The assertions correctly validate the expected behavior for escaped and unescaped table name formats.pramen/core/src/main/scala/za/co/absa/pramen/core/pipeline/TransformationJob.scala (1)
22-22: LGTM!The additional imports for
DataFormatandQueryare necessary for the new table name extraction logic.
pramen/core/src/main/scala/za/co/absa/pramen/core/pipeline/TransformationJob.scala
Outdated
Show resolved
Hide resolved
…mn in notifications.
af6fcc3 to
b5bf57c
Compare
Unit Test Coverage
Files
|
Closes #679
Summary by CodeRabbit
New Features
Tests
Style
✏️ Tip: You can customize this high-level summary in your review settings.