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

[spark] Fix the result of migrate database procedure #4993

Merged
merged 1 commit into from
Feb 6, 2025

Conversation

Zouxxyy
Copy link
Contributor

@Zouxxyy Zouxxyy commented Jan 24, 2025

Purpose

CALL sys.migrate_database(source_type => 'hive', database => '$hiveDbName', options => 'file.format=$format')
java.lang.String cannot be cast to org.apache.spark.unsafe.types.UTF8String
java.lang.ClassCastException: java.lang.String cannot be cast to org.apache.spark.unsafe.types.UTF8String
	at org.apache.spark.sql.catalyst.expressions.BaseGenericInternalRow.getUTF8String(rows.scala:45)
	at org.apache.spark.sql.catalyst.expressions.BaseGenericInternalRow.getUTF8String$(rows.scala:45)
	at org.apache.spark.sql.catalyst.expressions.GenericInternalRow.getUTF8String(rows.scala:165)
	at org.apache.spark.sql.catalyst.expressions.GeneratedClass$SpecificUnsafeProjection.apply(Unknown Source)
	at org.apache.spark.sql.execution.CommandResultExec.$anonfun$unsafeRows$1(CommandResultExec.scala:48)
	at scala.collection.TraversableLike.$anonfun$map$1(TraversableLike.scala:286)
	at scala.collection.mutable.ResizableArray.foreach(ResizableArray.scala:62)

Tests

API and Format

Documentation

@wwj6591812
Copy link
Contributor

+1

1 similar comment
@xuzifu666
Copy link
Member

+1

@YannByron YannByron merged commit b66c299 into apache:master Feb 6, 2025
12 checks passed
@Zouxxyy Zouxxyy deleted the dev/fix-migrate-db branch February 6, 2025 02:23
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.

4 participants