Skip to content

Run all tests with SQL Mode #3746

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

Draft
wants to merge 30 commits into
base: develop
Choose a base branch
from
Draft

Conversation

awildturtok
Copy link
Collaborator

No description provided.

@@ -48,6 +49,6 @@ public SingleColumnSqlSelect qualify(final String qualifier) {

@Override
public SqlSelect connectorAggregate() {
return new ExistsSqlSelect(DSL.max(select()).as(alias), alias);
return new ExistsSqlSelect(DSL.max(DSL.coalesce(select(), DSL.value(0))).as(alias), alias);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Macht nichts :(

Copy link
Collaborator

Choose a reason for hiding this comment

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

Was hattest du an der Stelle erwartet, was es tun sollte?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Das Problem ist, dass der ExistsSelect entweder 1 oder null ist. Wir wollen aber 1 oder 0. Ich hatte gehofft dass so zu forcieren. Aber das gibt der Code glaube ich nicht her.

@@ -19,24 +25,28 @@ public class SqlTestDataImporter implements TestDataImporter {

private final CsvTableImporter csvTableImporter;


@Override
public void importQueryTestData(StandaloneSupport support, QueryTest test) throws Exception {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ich glaube nicht, dass die noch großartig anders sind außer der AllIdsTabelle

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.

3 participants