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

Migrate to PIG 0.5.0 #563

Merged
merged 2 commits into from
Apr 5, 2022
Merged

Migrate to PIG 0.5.0 #563

merged 2 commits into from
Apr 5, 2022

Conversation

dlurton
Copy link
Member

@dlurton dlurton commented Apr 4, 2022

Migrates to the most recent version of PIG. PIG now puts each domain into its own output files instead of one uber partiql-domains.kt file, which until this PR, took a ton of memory to compile and made IntelliJ's code completion choke with only 3-4 domains permuted from partiql_ast.

This modifies the gradle build such that:

  • Uses PIG 0.5.0 instead of 0.4.0.
  • PIG output is new placed in lang/build/generated/src/pig (instead of lang/domains)
  • The old partiql-domains.kt file is deleted automatically (to avoid having to remember to do this manually after working with an older revision of this repo).

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@dlurton dlurton requested a review from alancai98 April 4, 2022 22:31
@@ -91,4 +90,4 @@ open class PartiQLBenchmark {
val exprValue = state.expression.eval(state.session)
blackhole.consume(exprValue)
}
}
Copy link
Member Author

Choose a reason for hiding this comment

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

Not sure what's going on here but for some odd reason ktlint decided it no longer liked the lack of newline here in my local build. Not sure why it was ok with it previously...

}
}

def partiqlDomainFile = 'partiql-domains.kt'
Copy link
Member

Choose a reason for hiding this comment

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

Could the .gitignore in the lang/domains folder also be deleted in this PR?

# this file is generated by PIG during the build and should not be checked in.
partiql-domains.kt

@dlurton dlurton merged commit 6343925 into main Apr 5, 2022
@dlurton dlurton deleted the update-pig-0-5-0 branch April 5, 2022 17:39
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