Skip to content
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

Improve field info metadata queries. #320

Merged
merged 5 commits into from
Mar 10, 2024
Merged

Improve field info metadata queries. #320

merged 5 commits into from
Mar 10, 2024

Conversation

jheer
Copy link
Member

@jheer jheer commented Mar 9, 2024

  • Add Query.describe(query) to generate DESCRIBE ... queries for metadata.
  • Add support for arbitrary SQL expressions (not just column names) as field info metadata.
  • Add support to convert Apache Arrow DECIMAL values to JavaScript Number values.
  • Update query consolidator to handle DESCRIBE queries, which require filtering rather than projection.
  • Remove table catalog from Coordinator, rely on cache and consolidation instead.
  • Refactor fieldInfo metadata management within vgplot Mark implementations.
  • Refactor Apache Arrow utilities to be exports of @uwdata/mosaic-core.

As a result of the above, the catalog option of Coordinator.clear is no longer supported. Clients can still pass the options, but it will have no effect. Instead, clearing the cache will now also drop any cached table metadata.

This PR fixes the issue raised here: observablehq/framework#1015 (comment).
Passing SQL expressions such as {x: vg.sql`-ra`} should now work.

@jheer jheer merged commit f5aa4e8 into main Mar 10, 2024
2 checks passed
@jheer jheer deleted the jh/field-info branch March 10, 2024 01:18
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.

1 participant