Skip to content

Feature/missing hana tests#3886

Open
awildturtok wants to merge 2 commits intodevelopfrom
feature/missing-hana-tests
Open

Feature/missing hana tests#3886
awildturtok wants to merge 2 commits intodevelopfrom
feature/missing-hana-tests

Conversation

@awildturtok
Copy link
Copy Markdown
Collaborator

No description provided.

@awildturtok awildturtok requested a review from thoniTUB as a code owner May 5, 2026 14:30
Copy link
Copy Markdown
Collaborator

@thoniTUB thoniTUB left a comment

Choose a reason for hiding this comment

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

Hier werden viele Tests gelöscht, ist das korrekt?

Comment on lines +148 to +149
// Would prefer this to be `is not null`, but hana does not support that for fields
Field<String> isResolved = innerPrimaryColumn.as(IS_RESOLVED_ALIAS);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Warum kein boolean mehr und muss dann nicht auch das SQL Beispiel aus dem Kommentar angepasst werden?

Copy link
Copy Markdown
Collaborator Author

@awildturtok awildturtok May 6, 2026

Choose a reason for hiding this comment

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

steht doch im Kommentar direkt drüber? Ich hab keine Syntax / konstrukt gefunden die für Hana funktioniert (Also einfach is not null meckert hana obwohl es eigentlich eine gültige Hana Expression ist). Ich schaue mal, ob ein case-when funktioniert.

return CQTableContext.builder()
.ids(ids)
.validityDate(tablesValidityDate)
.validityDate(Optional.of(tablesValidityDate))
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Hier auch das Optional killen?

Comment on lines 95 to 98
else if (preFinalSelects.getValidityDate().isEmpty()) {
// TODO i think this is unreachable?
return preFinalSelects.withValidityDate(functionProvider.allRange());
}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Tabellen und Queries ohne ValidityDate sind doch valide. Warum wird hier denn eins gesetzt?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

ich muss mal schauen, ob das noch reachable ist. Der Grund warum es evtl nicht erreicht sein kann ist, weil ich versucht habe bei allen cases von anfang an ein ValidityDate (dann eben ein leeres) mitzureichen. Das vereinheitlicht sehr viel code, statt dass man es an jeder stelle separat behandeln muss.

}
// not all DB vendors throw SQLExceptions
catch (SQLException | RuntimeException e) {
log.error("", e);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
log.error("", e);
log.error("Query execution failed", e);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Sind die hier gelöschen schon durch andere Test abgedeckt?

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