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

Track scalar types #54

Open
xitology opened this issue Feb 15, 2024 · 0 comments
Open

Track scalar types #54

xitology opened this issue Feb 15, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@xitology
Copy link
Member

Currently, FunSQL tracks the names and the order of the output columns, but it does not distinguishes their types.

To fix this, FunSQL needs to:

  • Introspect the types of table columns and preserve them in the catalog;
  • Implement type resolution for SQL functions and operators.

Column information could be stored in a structure SQLColumn(name, type) with SQLTable.columns becoming an OrderedDict{Symbol, SQLColumn}. Accidentally, it will allow a column to have a FunSQL name that differs from its SQL name.

It is much harder to implement type resolution for arbitrary expressions. We could start by allowing the user to explicitly declare the result type of a particular function or an operator call.

@clarkevans clarkevans added the enhancement New feature or request label Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants