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
ColumnMetadata
holds aType
, aConnectorViewDefinition.ViewColumn
only holds aTypeId
.The
Type
->TypeId
translation 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 theTypeId
s to ArrowField
s 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
TypeId
s and not the originalType
s?Thanks :)
Gilad
Update: We addedtrino-main
as a dependency to reuseio.trino.metadata.TypeRegistry
. Still feels like a hack, but at least it ensures consistency.Update 2: We dropped
trino-main
as 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