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

numericLiteral is always integer #23

Open
marnun opened this issue Sep 7, 2015 · 1 comment
Open

numericLiteral is always integer #23

marnun opened this issue Sep 7, 2015 · 1 comment

Comments

@marnun
Copy link

marnun commented Sep 7, 2015

when using:
builder.AddProjection(new Function("AVG", new Multiplication(new NumericLiteral(1.0), new Column("col1"))), metric);
i'm getting :
SELECT AVG((1 * col1))
instead of :
SELECT AVG((1.0 * col1))

@jehugaleahsa
Copy link
Owner

NumericLiteral has a Format property that you can use to force how the
number is converted back to a string.
On Sep 7, 2015 10:06 AM, "erez l" [email protected] wrote:

when using:
builder.AddProjection(new Function("AVG", new Multiplication(new
NumericLiteral(1.0), new Column("col1"))), metric);
i'm getting :
SELECT AVG((1 * col1))
instead of :
SELECT AVG((1.0 * col1))


Reply to this email directly or view it on GitHub
#23.

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

2 participants