vega / vegafusion

Serverside scaling for Vega and Altair visualizations
https://vegafusion.io
BSD 3-Clause "New" or "Revised" License
317 stars 17 forks source link

Add lazy implementation of DataFrame Interchange Protocol to SqlDataset #373

Closed jonmmease closed 1 year ago

jonmmease commented 1 year ago

Updates the SqlDataset.__dataframe__ method to support introspecting column schema info without evaluating the underlying SQL query. Combined with Altair dev, this will make it possible to pass SqlDataset instances into Altair for column type inference without triggering the SQL query.

Heavily inspired by https://github.com/ibis-project/ibis/pull/6733