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

sql: test/evaluate compatibility with Flowable #31879

Closed
awoods187 opened this issue Oct 25, 2018 · 14 comments
Closed

sql: test/evaluate compatibility with Flowable #31879

awoods187 opened this issue Oct 25, 2018 · 14 comments
Labels
A-sql-pgcompat Semantic compatibility with PostgreSQL C-enhancement Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception) meta-issue Contains a list of several other issues.

Comments

@awoods187
Copy link
Contributor

Test flowable with CockroachDB
https://www.flowable.org/

@petermattis petermattis added the C-enhancement Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception) label Oct 28, 2018
@knz knz changed the title Test Flowable sql: test/evaluate compatibility with Flowable Nov 12, 2018
@knz knz added A-sql-pgcompat Semantic compatibility with PostgreSQL meta-issue Contains a list of several other issues. labels Nov 12, 2018
@rolandcrosby
Copy link

Right off the bat, #32098 blocks several of Flowable's CREATE TABLE statements. I ran Flowable against Postgres for a while and captured a sample of queries that it uses; will continue to work with the SQL team to determine how to identify other compatibility gaps.

@awoods187
Copy link
Contributor Author

Any update on this after Friday's testing @rolandcrosby ?

@drewdeally
Copy link

@knz
Copy link
Contributor

knz commented Feb 21, 2019

#35109 we can probably work around easily. #35108 is a little more work but is probably doable for 19.1, or perhaps 19.1.x. I wouldn't recommend backports to 2.1.

@knz
Copy link
Contributor

knz commented Feb 21, 2019

The linked support issue also mentions #32098.

This is a well-scoped, well-contained new feature that's approximately M-sized (compare to S-sized for the previous two)

@rolandcrosby
Copy link

I'm 90% sure that #32098 is the only query here that's specific to Flowable. The other two are caused by pg_dump and do not occur in the Flowable application.

(What happened here: we ran Flowable against a Postgres instance that was configured to write all queries to a log file, then ran pg_dump to save the state of the database for later import/analysis; Postgres still had query logging turned on when we ran pg_dump, so all the SQL queries issued by pg_dump also showed up in the log, along with all the queries that were actually issued by the Flowable application.)

@knz
Copy link
Contributor

knz commented Feb 21, 2019

For #32098 it would be good to know whether the customer uses any other precision than 6 in their app.

@rolandcrosby
Copy link

The Postgres schemas in Flowable only use TIMESTAMP and TIMESTAMP(6). You can search that repo online here; I downloaded the code locally to look in more detail. There are a couple occurrences of TIMESTAMP(3) in the repo, but those are only in the MySQL-specific DDL code.

@awoods187
Copy link
Contributor Author

Does that impact your idea @knz ?

@knz
Copy link
Contributor

knz commented Feb 21, 2019

we won't be able to do anything about TIMESTAMP(3) in the near future. For the other cases, my PR #35128 might help. It's only going to work as long as they don't expect the precision to be preserved in information_schema/pg_catalog.

@rolandcrosby
Copy link

I believe your PR will solve the problem. Thanks!

@drewdeally
Copy link

drewdeally commented Feb 21, 2019

Roland, we can work around these with the create script - if we don't go that route then Flowable needs to have logic to add indexes for RI constraints and they will also fail.
Unless we have a plan for FK constraint to automate the index build on the reference col and table when not present.

@vy-ton
Copy link
Contributor

vy-ton commented Jun 25, 2020

Flowable is supported with CockroachDB, cockroachdb/docs#6865 tracks updating documentation.

@vy-ton vy-ton closed this as completed Jun 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-sql-pgcompat Semantic compatibility with PostgreSQL C-enhancement Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception) meta-issue Contains a list of several other issues.
Projects
None yet
Development

No branches or pull requests

6 participants