Skip to content

feat: Deletion and renaming of columns with upgrade of delta sharing server#441

Open
bidhan-nagarro wants to merge 33 commits into
mainfrom
feature/TECH-7468/schema-evolution-with-deletions-and-renaming
Open

feat: Deletion and renaming of columns with upgrade of delta sharing server#441
bidhan-nagarro wants to merge 33 commits into
mainfrom
feature/TECH-7468/schema-evolution-with-deletions-and-renaming

Conversation

@bidhan-nagarro
Copy link
Copy Markdown
Collaborator

@bidhan-nagarro bidhan-nagarro commented Mar 23, 2026

What type of PR is this?

  • feat: Commits that add a new feature

Summary

What does this PR do

Upgrades Delta sharing server to support deletion and renaming of columns

how to test

Phase 1: Trigger Schema Migration

  1. Sensor: In the Dagster UI, ensure migrations__schema_sensor is ON.
  2. Watch Logs: Wait for the migrate__schema job to finish.
  3. Verification:
    • Check the metaschema.school_geolocation table in Trino.
    • Shows the output of DESCRIBE delta_lake.school_geolocation.<country_code>; showing the new column name.

Phase 2: Ingest Data

  1. Upload: Use the Ingestion Portal to upload
  2. Process:
    • Trigger the school_master_geolocation__raw_file_uploads_sensor.
    • Observe the logs. You should see: Detected renames: {'school_name': 'official_school_name'}.
    • Shows the Dagster logs where it executes ALTER TABLE ... RENAME COLUMN.

Phase 3: Data Validation

  1. Query: Run the following in Trino:
    SELECT official_school_name FROM delta_lake.school_geolocation.<country_code> LIMIT 5;
  2. Shows the successful query results with actual data under the new column name.

Phase 4: Data Sharing

  1. Start Sharing: Stop Dagster and start the giga-data-sharing server.
  2. Client Test: Use a Delta Sharing client (e.g., Python delta-sharing library) to fetch the table.
  3. **This confirms the version upgrade (1.3.10) fixed the sharing issue.

Screenshot From 2026-04-15 12-23-47 Screenshot From 2026-04-15 13-13-36 Screenshot From 2026-04-15 13-14-27

@bidhan-nagarro bidhan-nagarro self-assigned this Mar 23, 2026
@gauravgupta-nagarro gauravgupta-nagarro force-pushed the feature/TECH-7468/schema-evolution-with-deletions-and-renaming branch from bcca942 to 3524d75 Compare April 1, 2026 08:30
Gaurav Gupta and others added 6 commits April 1, 2026 14:04
* feat: optimize memory footprint and tables

* feat: update requests flow and master updates to match staging changes

* feat: make post approval changes

* fix: ensure approvals are ingested into silver and master

* fix: coalesce admin correctly

* fix: update connectivity_govt checks and make them safe when empty

* fix: improve safety around connectivity columns

* fix: remove reference to download_speed_govt

* fix: cast the schema

* fix: ensure the table is added

* ifx: simplify logic when staging table exists

* feat: add approval_request_log_id link

* fix: ensure admin column are not erroneously updated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants