-
Notifications
You must be signed in to change notification settings - Fork 459
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
coord,sql: store types differently in catalog
Store types in the catalog via a new CatalogType enum. This enum is nearly one-to-one with ScalarType, except that modifier fields are removed and embedded types are replaced with GlobalId references. This type is used throughout the SQL planner, in the plans returned by `CREATE TYPE` and in the type name resolution code. The motivation for this refactor is the removal of the "lossy" conversions from `pgrepr::Type` to `ScalarType`. Now, all conversions are either full fidelity or report an error if they would discard data.
- Loading branch information
Showing
18 changed files
with
714 additions
and
381 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.