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

Use existing schema when querying local data. #86

Merged
merged 1 commit into from
Sep 2, 2022

Commits on Sep 2, 2022

  1. Use existing schema when querying local data.

    Datafusion needs a valid schema to execute a query. If no associated schema
    found for registered table then datafusion tries to infer that schema. If
    there are no available listings from which schema can be derived then it fails
    and returns an error.
    
    This causes entire query to fail and return error response. This is fixed by
    giving it a proper schema to work with that is already part of metadata.
    There are however ways that this schema is might not be available
    ( maybe first event has happened yet), then we simply return doing no
    changes to RecordBatch.
    
    Changes to be committed:
      modified:   server/src/query.rs
    trueleo committed Sep 2, 2022
    Configuration menu
    Copy the full SHA
    d37d898 View commit details
    Browse the repository at this point in the history