velox icon indicating copy to clipboard operation
velox copied to clipboard

Fix handling of common sub expressions and encoded input

Open bikramSingh91 opened this issue 2 years ago • 2 comments

This patch fixes the following:

  • Handling common sub expressions running over disjoint set of active rows
  • Tracking of rows that have been pre-computed by the common expressions
  • Handling evaluation of encoded input

Test Plan: Added unit tests

bikramSingh91 avatar Aug 25 '22 23:08 bikramSingh91

Deploy Preview for meta-velox canceled.

Name Link
Latest commit 4a6a577c71827942d898d997be78fff9124930d6
Latest deploy log https://app.netlify.com/sites/meta-velox/deploys/631a5122d65450000816d7f3

netlify[bot] avatar Aug 25 '22 23:08 netlify[bot]

@bikramSingh91 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

facebook-github-bot avatar Aug 26 '22 20:08 facebook-github-bot

@bikramSingh91 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

facebook-github-bot avatar Aug 31 '22 00:08 facebook-github-bot

@mbasmanova request you to please take another look when you have some free cycles

bikramSingh91 avatar Sep 01 '22 16:09 bikramSingh91

Just to confirm, do you mean test coverage with respect to adding a case where final selection is not a superset of sharedSubExpressionRows?

bikramSingh91 avatar Sep 06 '22 17:09 bikramSingh91

Just to confirm, do you mean test coverage with respect to adding a case where final selection is not a superset of sharedSubExpressionRows?

I'm thinking that we might be missing test cases that would cover the following scenario:

I wonder if it is possible for sharedSubexprRows_ to have rows that are not present in context->finalSelection(). I think this may happen if some rows are needed for evaluating one expression, but not another. To cover this case we may need to set finalSelection to a union of finalSelection and sharedSubexprRows_.

mbasmanova avatar Sep 06 '22 17:09 mbasmanova

Just to confirm, do you mean test coverage with respect to adding a case where final selection is not a superset of sharedSubExpressionRows?

I'm thinking that we might be missing test cases that would cover the following scenario:

I wonder if it is possible for sharedSubexprRows_ to have rows that are not present in context->finalSelection(). I think this may happen if some rows are needed for evaluating one expression, but not another. To cover this case we may need to set finalSelection to a union of finalSelection and sharedSubexprRows_.

Got it, thanks for confirming

bikramSingh91 avatar Sep 06 '22 19:09 bikramSingh91

@bikramSingh91 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

facebook-github-bot avatar Sep 08 '22 17:09 facebook-github-bot

@bikramSingh91 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

facebook-github-bot avatar Sep 08 '22 20:09 facebook-github-bot