TypeId -> Type conversion of a ConnectorViewDefinition.ViewColumn
#24668
Unanswered
gw-vastdata
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
We're adding view support for our connector, and I see that while
ColumnMetadataholds aType, aConnectorViewDefinition.ViewColumnonly holds aTypeId.The
Type->TypeIdtranslation is straightforward, so it is possible to manually reverse it, but I wanted to be sure I'm not missing a better way to achieve this - the end goal is to translate theTypeIds to ArrowFields to get a complete schema, which is required by our backed to actually create the view.Any recommendations?
Follow-up question - why do views and materialized views use only the
TypeIds and not the originalTypes?Thanks :)
Gilad
Update: We addedtrino-mainas a dependency to reuseio.trino.metadata.TypeRegistry. Still feels like a hack, but at least it ensures consistency.Update 2: We dropped
trino-mainas a dependency because we had subdependency issues with duplicate classes with both same and different versions.Beta Was this translation helpful? Give feedback.
All reactions