Schema Changes Used to Be a Shape-Shifting Jigsaw Puzzle
Schema changes are not limited to the names of schemas. They can mean new table structures, column names, field types and merges. Before GenAI, reviewing them was a shape-shifting jigsaw puzzle.
One place
I like to keep things in one place, so it becomes easier to write, review, guide and iterate. I use my IDE connected to Databricks, so I can test notebooks and push to Git at the same time. With GenAI, the Codex extension became my new assistant.
AI-assisted SQL porting
I didn't want to repeat the same prompt, paste it and change it for every project that needs a schema-change review. So I built a template: a set of rules and a flow that guides the exploration, mapping, interaction, format and new proposals for the new schema.It became a SQL prompting plugin. It maps old columns to new ones semantically, using the mapping provided by the user, proposes the new SQL query, and compares the output of the old and new queries.
The missing piece
While doing this, I kept opening the SQL warehouse to run queries and share the results back with Codex. With things spread out like that, it became hard to keep everything intact in one place. When I tried to run a test, it didn't work: I couldn't run only the SQL parts, and I didn't want to run any Python or Spark.
A plugin that calls another
I wanted to keep SQL querying separate from the porting work, so I created a second plugin with an MCP server connection to the Databricks SQL warehouse. It handles the EDA and querying with read-only access, so no source table is changed.Now the SQL porting plugin calls Databricks whenever it needs evidence-based exploration.
In the end
The jigsaw puzzle didn't disappear; I just stopped putting it together by hand. The porting plugin brings the pieces, the Databricks plugin checks whether they fit, and I decide what goes in.
Days became hours. And every correction I make now becomes a rule for the next similar project, so the puzzle gets a little smaller each time.