-
Notifications
You must be signed in to change notification settings - Fork 40
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
Couldn't exec impala function at INSERT Statement #27
Comments
Hi, I tried to reproduce your issue as follows:
I tried to insert data from table_a to table_b using the following code:
and it worked as expected. The data were inserted to table_b from table_a. If I try use an incompatible column with cast, the program throws error like below:
Have you tried running your query through Hue or Impala Shell? What error does that throw? |
After my test, It not work again. I use go mod in my project, Do you think that is problem? Thanks. |
@zbyjm6969 , this driver doesn't seem to be supported anymore. The insert issue is fixed at https://github.com/sclgo/impala-go . DML statements in Impala are async and the driver needs to wait for them to finish . QueryContext may wait but ExecContext didn't before the fix. I tried to open a PR for the same fix here but this code no longer builds with a recent version of Go - #33 , #47. |
Just like title, When I exec insert statement like
insert into table TABLE_A (id,user_name) select id,user_name from TABLE_B
It good to work, But if I give a function like
insert into table TABLE_A (id,user_name,age) select id,user_name,cast(age as string) from TABLE_B
No fail message and no data insert
The text was updated successfully, but these errors were encountered: