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

WriteSchemaConverter#serializeColumn should not upcast #48

Conversation

faucct
Copy link
Collaborator

@faucct faucct commented Nov 8, 2024

No description provided.

@faucct faucct requested a review from alextokarew November 8, 2024 16:36
@@ -75,7 +75,9 @@ sealed abstract class AtomicYtLogicalType(name: String,
sealed trait CompositeYtLogicalType extends YtLogicalType {
override def columnValueType: ColumnValueType = ColumnValueType.ANY

override def getName(isColumnType: Boolean): String = ColumnValueType.ANY.getName
override def getName(isColumnType: Boolean): String = throw new IllegalStateException(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd prefer to preserve backward compatibility and introduce a config option to change this behaviour

@faucct faucct closed this Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants