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

Fill the type mappings #7

Open
nils-braun opened this issue Aug 27, 2020 · 5 comments
Open

Fill the type mappings #7

nils-braun opened this issue Aug 27, 2020 · 5 comments
Labels
good first issue Good for newcomers

Comments

@nils-braun
Copy link
Collaborator

There are many SQL types and relevant python types in the SQL to python mappings in mappings.py still missing.
Those can be added one-by-one.

@nils-braun nils-braun added the good first issue Good for newcomers label Aug 27, 2020
@raybellwaves
Copy link

raybellwaves commented Sep 6, 2020

https://www.w3schools.com/sql/sql_datatypes.asp
Believe this is of reference
and
https://calcite.apache.org/javadocAggregate/org/apache/calcite/sql/type/SqlTypeName.html

@raybellwaves
Copy link

raybellwaves commented Sep 6, 2020

Types: (x indicates it is has been included)

  • ANY
  • ARRAY
  • BIGINT
  • BINARY
  • BOOLEAN
  • CHAR
  • CURSOR
  • DATE
  • DECIMAL
  • DOUBLE
  • GEOMETRY
  • INTEGER
  • INTERVAL
  • MAP
  • MULTISET
  • NUMERIC
  • REAL
  • ROW
  • SMALLINT
  • SYMBOL
  • TIME
  • TIMESTAMP
  • TINYINT
  • VARBINARY
  • VARCHAR

Spatial types

  • GEOMETRY
  • POINT
  • CURVE
  • LINESTRING
  • SURFACE
  • POLYGON
  • POLYHEDRALSURFACE
  • GEOMETRYCOLLECTION
  • MULTIPOINT
  • MULTICURVE
  • MULTILINESTRING
  • MULTISURFACE
  • MULTIPOLYGON

@nils-braun
Copy link
Collaborator Author

Thank you very much for giving the references @raybellwaves!
I added the remaining entries to your list (sorry for editing one of your comments)

@raybellwaves
Copy link

Np at all. I was originally planning to add them all but had to drop off. Expect me to very intermittent :) but looking forward to contributing nonetheless

@nils-braun
Copy link
Collaborator Author

I have updated the type mappings from the Calcite Documentation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants