dwiel / dwiel/graphcore

allow for expressing invariance rules and optimizations around them

Open
#34 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
11
Forks
1
PR merge metrics
No merged PRs in 30d

Description

In some cases I've written rules like this:

```
@gc.rule(['location.id'], 'location.location_months.location.id')
def location_location_months_location_id(id):
return id
```

Because this transformation is opaque to graphcore (it sees it as a python function) and so can't optimize across that boundary as in this case:

```
location.location_months.location.date_of_first_email = (location.location_months.location.id)
location.establishment_type.name, location.name, location.establishment_type.id, location.house_state, location.id = () Cardinality.many
```

these SQLQueries should be mergable, but since there is this python function inbetween, it can't.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.