Skip to content

Throw Exception "converting driver.Value type float64 ("-0.034224987") to a int64 " when select data from predictions in notebook #770

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

Closed
BlackPoint-CX opened this issue Sep 3, 2019 · 4 comments
Assignees
Labels
DataScience The issue about the application in data science DiDi The issue publisher is from Didi

Comments

@BlackPoint-CX
Copy link

Description
Throw Exception "converting driver.Value type float64 ("-0.034224987") to a int64 " when select data from predictions in notebook.

Reproduction Steps
Train Step

%%sqlflow
SELECT *
FROM datamap_test.ds_xgboost_train
TRAIN xgboost.REGRESSOR
WITH
    train.verbosity = 2,
    train.num_round = 50,
    train.subsample = 1
COLUMN COL_1, COL_2, COL_3
LABEL GOAL_1
INTO datamap_test.ds_xgboost_model ;

Predict

%%sqlflow 
SELECT *
FROM datamap_test.ds_xgboost_test
PREDICT ds_xgboost_predict.GOAL_1
WITH
	pred.append_columns = [COL_1, COL_2, COL_3]
USING datamap_test.ds_xgboost_model;

Select Prediction

%%sqlflow
SELECT *
FROM datamap_test.ds_xgboost_predict
LIMIT 5 ;

This SELECT works in HiveCLI. However when running it in notebook, it thrown exception like following .

_Rendezvous: <_Rendezvous of RPC that terminated with:
	status = StatusCode.UNKNOWN
	details = "sql: Scan error on column index 57, name "ds_xgboost_predict.duration": converting driver.Value type float64 ("-0.034224987") to a int64: invalid syntax"
	debug_error_string = "{"created":"@1567508579.253829853","description":"Error received from peer ipv4:127.0.0.1:50051","file":"src/core/lib/surface/call.cc","file_line":1041,"grpc_message":"sql: Scan error on column index 57, name "ds_xgboost_predict.GOAL_1": converting driver.Value type float64 ("-0.034224987") to a int64: invalid syntax","grpc_status":2}"

Expected Behavior

Screenshots

Environment (Please complete the following information):

  • OS:
  • Browser:
  • Version: based on commit 9a0dc86 refine code structure for expression resolver (#760)

Additional Notes

@Yancey0623
Copy link
Collaborator

Maybe you can show the result of desc datamap_test.ds_xgboost_predict and select * from datamap_test.ds_xgboost_predict in beeline CLI?

@BlackPoint-CX
Copy link
Author

Maybe you can show the result of desc datamap_test.ds_xgboost_predict and select * from datamap_test.ds_xgboost_predict in beeline CLI?

1
2

@Yancey0623
Copy link
Collaborator

It seems a bug of gohive package, I fixed it by sql-machine-learning/gohive#54 .

@Yancey0623 Yancey0623 self-assigned this Sep 5, 2019
@tonyyang-svail
Copy link
Collaborator

@Yancey1989 @BlackPoint-CX Has this issue been fixed? If so, please close it.

@Echo9573 Echo9573 added DataScience The issue about the application in data science DiDi The issue publisher is from Didi labels Dec 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DataScience The issue about the application in data science DiDi The issue publisher is from Didi
Projects
None yet
Development

No branches or pull requests

4 participants