looker-open-source/lookr

Run_inline_query return me whole number

shuakk opened this issue · 8 comments

I set up the library correctly in R studio, and did return me the results. But all decimal numbers in looker are returned as whole number in R.
Anyone know why?

Hey @shuakk can you check if you have decimals legacy feature enabled on your instance? admin/legacy features?

@AleksandrsVedernikovs Yes, That feature is on. Should I change the lookml code value_format_name from decimal_2 to value_formats: "0.00"

@shuakk Can you show us the code you're working with and the LookML for the field which should be displaying as a decimal and is returning as an integer?

Also, please confirm that the field which is returning as an integer returns as a decimal in Looker. Screenshots here would be helpful so we can see the full picture, but be sure to redact any sensitive information.

image
image
image
image

In case you need to know my getTrainingData functions
image

Excellent, thanks @shuakk, this helps a lot. I'll investigate this issue and see if it's something on our end, hopefully can push some changes this weekend

Awesome, thanks a lot!

@maxcorbin Any updates? Did you fixed the issue for the decimals?