Skip to content

PG: Support for multiple projection in aggregate #4469

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

Merged
merged 2 commits into from
Dec 29, 2017

Conversation

dplewis
Copy link
Member

@dplewis dplewis commented Dec 29, 2017

Adds support for multiple keys in aggregate queries.

Improves Projection Tests
Lints PG adapter.

@codecov
Copy link

codecov bot commented Dec 29, 2017

Codecov Report

Merging #4469 into master will decrease coverage by <.01%.
The diff coverage is 75%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4469      +/-   ##
==========================================
- Coverage   92.71%   92.71%   -0.01%     
==========================================
  Files         118      118              
  Lines        8356     8355       -1     
==========================================
- Hits         7747     7746       -1     
  Misses        609      609
Impacted Files Coverage Δ
...dapters/Storage/Postgres/PostgresStorageAdapter.js 97.04% <75%> (-0.01%) ⬇️
src/RestWrite.js 93.46% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6ba9399...bb94d73. Read the comment docs.

@@ -1546,7 +1545,7 @@ export class PostgresStorageAdapter {
}
}

const qs = `SELECT ${columns} FROM $1:name ${wherePattern} ${sortPattern} ${limitPattern} ${skipPattern} ${groupPattern}`;
Copy link
Contributor

Choose a reason for hiding this comment

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

Are you sure you do not need to join the column there? Or is it the default for ES6 template strings when it comes to arrays?

Copy link
Contributor

Choose a reason for hiding this comment

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

Did I reject this? Sorry, I'm not quite sure what I'm doing when it comes to reviews :)

Copy link
Member Author

@dplewis dplewis Dec 29, 2017

Choose a reason for hiding this comment

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

No problem. I did join the columns here. They weren't joined before properly.

@@ -1546,7 +1545,7 @@ export class PostgresStorageAdapter {
}
}

const qs = `SELECT ${columns} FROM $1:name ${wherePattern} ${sortPattern} ${limitPattern} ${skipPattern} ${groupPattern}`;
const qs = `SELECT ${columns.join()} FROM $1:name ${wherePattern} ${sortPattern} ${limitPattern} ${skipPattern} ${groupPattern}`;
Copy link
Member Author

Choose a reason for hiding this comment

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

@vitaly-t Joined here

Copy link
Contributor

@vitaly-t vitaly-t left a comment

Choose a reason for hiding this comment

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

LGTM.

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