Oxen-AI / Oxen

Oxen.ai's core rust library, server, and CLI
https://oxen.ai
Apache License 2.0
202 stars 12 forks source link

Fix deleted columns not appearing in schema #392

Closed EloyMartinez closed 3 months ago

EloyMartinez commented 3 months ago

Given that the schema of a dataframe is retrieved by a simple sql query, when a column is deleted, this column no longer appears in the schema.

In order to be able to display the proper diff in the fields of the dataframe, we go over the diff map and reinsert deleted columns with the proper operation tag and reinsert these columns into the schema object.