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

#707 Added support for SumInt(Int), SumDec(BigDecimal) and AvgDec(BigDecimal) #751

Merged
merged 8 commits into from
Nov 17, 2022

Conversation

balanka
Copy link
Contributor

@balanka balanka commented Oct 28, 2022

Added code to support for SumInt(Int), SumDec(BigDecimal) and AvgDec(BigDecimal)

@balanka balanka requested a review from a team as a code owner October 28, 2022 08:09
Copy link
Collaborator

@sviezypan sviezypan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hey @balanka the direction is good but I would like to see a real test against Postgresql or other DB. Also it seems that the build has failed.

def spec = suite("Aggregate Expression")(
test("+ works on integer, Double and BigDecimal columns") {
val query = agSelect
assert(query)(anything)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure what you're testing here....what's agSelect ?

Copy link
Contributor Author

@balanka balanka Oct 28, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added new enhanced Test AgregationSpec for Postgesql
and removed core/jvm/src/test/scala/zio/sql/ExprSpec.scala

Copy link
Contributor Author

@balanka balanka Oct 29, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The CI-build seems to be flaky my local build was successful

37 tests passed. 0 tests failed. 1 tests ignored.
Executed in 6 m 15 s

@sviezypan sviezypan merged commit f37cb15 into zio:master Nov 17, 2022
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

Successfully merging this pull request may close these issues.

2 participants