mimic-code icon indicating copy to clipboard operation
mimic-code copied to clipboard

mimic-iv/concepts: fix `postgres-make-concepts` and minor updates

Open schu opened this issue 1 year ago • 1 comments

Please see the individual commits for context.

schu avatar Aug 11 '22 09:08 schu

Thanks for the changes (and the other ones as well!). Which OS are you running this on? For the regexes, they are quite brittle as I'd like to support two common flavours of shell:

  • BSD sed and bash 3.x (shipped on Mac OS X)
  • GNU sed and bash 4.x+ (shipped on Ubuntu)

Trying to allow for this compatibility eliminates the possibility of using some common syntax.

alistairewj avatar Aug 12 '22 13:08 alistairewj

Which OS are you running this on?

Fedora 36 with Postgres 14.3 (the latest version in dnf).

schu avatar Aug 15 '22 08:08 schu

Hey, any news? :)

I'd be happy to get rid of the perl regex

If you want, I can test and push an alternative patch and drop the regex.

schu avatar Sep 29 '22 16:09 schu

I got way too distracted by other things and the MySQL container build - but yes especially with people running into issues (e.g. #1393) this should definitely be fixed... making some changes now

alistairewj avatar Sep 29 '22 17:09 alistairewj

OK this looks to work well - the checks will fail since they're running on a fork which is unprivileged.. it's a TODO of mine to make PRs trigger a privileged workflow rather than trying to run the tests themselves.

I tested it locally and built all the tables successfully (BSD sed over here). @schu can you give convert_bigquery_to_postgres.sh and postgres-make-concepts.sql a run with the latest commits pulled down? If it works for you, then we should be good to merge.

alistairewj avatar Sep 29 '22 19:09 alistairewj

I'll merge this as I'll test the functionality with gh actions

alistairewj avatar Oct 04 '22 20:10 alistairewj