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

Be return column order inconsistent #10

Open
hongli-my opened this issue Nov 19, 2022 · 0 comments
Open

Be return column order inconsistent #10

hongli-my opened this issue Nov 19, 2022 · 0 comments

Comments

@hongli-my
Copy link

table 's column order is : order_id1, order_id2, order_id3, order_id4, order_time

spark-sql> select order_id2, order_id1 from test1;
22/11/19 22:51:48 WARN ScalaValueReader: Open scan result is, contextId: 6910e3ad-3efb-4dcb-aab3-7984ac3c1a6d, schema: Schema{status=0, properties=[Field{name='order_id1', type='INT', comment='', precision=0, scale=0}, Field{name='order_id2', type='BIGINT', comment='', precision=0, scale=0}]}.
===== filedField{name='order_id1', type='INT', comment='', precision=0, scale=0}  mt:INT=== cr:order_id1
===== filedField{name='order_id2', type='BIGINT', comment='', precision=0, scale=0}  mt:BIGINT=== cr:order_id2
22/11/19 22:51:48 ERROR Executor: Exception in task 0.0 in stage 3.0 (TID 3)
java.lang.RuntimeException: Error while encoding: java.lang.RuntimeException: java.lang.Integer is not a valid external type for schema of bigint
if (assertnotnull(input[0, org.apache.spark.sql.Row, true]).isNullAt) null else validateexternaltype(getexternalrowfield(assertnotnull(input[0, org.apache.spark.sql.Row, true]), 0, order_id2), LongType) AS order_id2#30L
if (assertnotnull(input[0, org.apache.spark.sql.Row, true]).isNullAt) null else validateexternaltype(getexternalrowfield(assertnotnull(input[0, org.apache.spark.sql.Row, true]), 1, order_id1), IntegerType) AS order_id1#31
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

No branches or pull requests

1 participant