-
Notifications
You must be signed in to change notification settings - Fork 2k
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
byte and short types in spark no longer auto coerce to int32 #10225
Comments
Hey @jkolash Thanks for reporting this. The behavior should stay the same, due to the logic here: What's the error that you're seeing? This will help me to reproduce the issue on my end and see if we can come up with a fix. |
@Fokko Thanks for the quick response I will try to write up a code snippet reproducing the issue. |
val df = spark.sql("""select inline(array(from_json('{"b":82}', 'struct<b:byte>')))""")
df.show()
df.writeTo("staging.iceberg_table_3")
.using("iceberg")
.createOrReplace() using this spark config
|
If/when there is a PR I can test it on my side. where I have exhaustive type testing.
is the error I get |
hmm I think this may be related to the spark version we are using as I tested on spark-3.4.1 and didn't see the issue but see it on our 3.4.2 |
Ok this is reproducing via the github actions build on my public fork
|
Just wanted to make sure you were aware reproducing is pretty simple
|
Apache Iceberg version
1.5.0
Query engine
Spark
Please describe the bug 馃悶
The removal of the code
In this PR https://github.com/apache/iceberg/pull/9440/files
broke this auto-coercion
Is there a reason for the removal of byte short support auto coercing to int? before on iceberg 1.4.x we were able to materialize this into iceberg just fine but now on iceberg 1.5.x it doesn't work
The text was updated successfully, but these errors were encountered: