Skip to content

Fix CsvDataTableStore.getRows() returning String[] where other implementation returned typed objects#7279

Merged
jkschneider merged 2 commits intomainfrom
prethink-rethink
Apr 4, 2026
Merged

Fix CsvDataTableStore.getRows() returning String[] where other implementation returned typed objects#7279
jkschneider merged 2 commits intomainfrom
prethink-rethink

Conversation

@sambsnyd
Copy link
Copy Markdown
Member

@sambsnyd sambsnyd commented Apr 4, 2026

So for example the GenerateCalmArchitechture prethink recipe running in a unit test would call InMemoryDataTableStore.getRows() and get back a ServiceEndpoints.Row and pass.

When the same recipe ran via the CLI it would call CsvDataTableStore.getRows() and get back a String[] and fail because it did not expect that.

Initially the SourcesFileErrors data table didn't report these failures either because they happened in the second cycle and were omitted due to DataTable.allowWritingInthisCycle() returning false. This led to the frustrating situation where recipe errors would be reported in the console but there would be no data table to look at to find out what the errors actually were.

@github-project-automation github-project-automation bot moved this from In Progress to Ready to Review in OpenRewrite Apr 4, 2026
@jkschneider jkschneider merged commit cd67cfb into main Apr 4, 2026
1 check passed
@jkschneider jkschneider deleted the prethink-rethink branch April 4, 2026 01:57
@github-project-automation github-project-automation bot moved this from Ready to Review to Done in OpenRewrite Apr 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants