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

Add optional Citus support #302

Merged
merged 3 commits into from
Jan 12, 2022
Merged

Conversation

JelteF
Copy link
Contributor

@JelteF JelteF commented Dec 17, 2021

NOTE: this PR includes the #292, to make it more readable and make merging them
both in the future easier. Adding comments to the diff is probably easier to do
on this equivalent PR with a different base branch on the Citus repo: citusdata#2

This adds the option to configure the TPROC-C build step to build the
schema with support for Citus. This distributes the tables and all the
stored procedures.

The tcl files in this repo did not seem to adhere to any common
indentation style. This made it quite hard for me to understand what the
code was doing. To resolve this I used the reformat.tcl script that is
provided on the tcl wiki:
https://wiki.tcl-lang.org/page/Reformatting+Tcl+code+indentation

I replaced the original reformat proc that was provided in the first
message, with the reformat2 proc that was contributed by aplsimple in
the last message on the thread. I did make one final change to this
reformat2 script, such that does not exclude comments from indentation.

I think this makes the code much more readable.

I understand that this is a big PR, but it only changes whitespace. If
you look at the diff by excluding whitespace, there's only one change.
And this change is a change from file encoding from latin1 to utf-8.
This adds the option to configure the TPROC-C build step to build the
schema with support for Citus. This distributes the tables and all the
stored procedures.
@sm-shaw
Copy link
Contributor

sm-shaw commented Jan 11, 2022

I have tested this and created a pull requests citusdata#4 to fix a minor issue with the GUI options when the citus data checkbox is selected in the GUI options. I have also tested the schema build and creation without the citus data options selected to verify that the regular PostgreSQL builds continue to work as before.
This is recommended to accept with the GUI option fix to resolve the error.

@sm-shaw
Copy link
Contributor

sm-shaw commented Jan 12, 2022

Merging Pull Request as voted on by TPC-OSS subcommittee on 11th Jan 2022.

@sm-shaw sm-shaw merged commit e89c080 into TPC-Council:master Jan 12, 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.

None yet

2 participants