The GitHub Actions job "Nightly - E2E Operation" on shardingsphere.git/master 
has failed.
Run started by GitHub user menghaoranss (triggered by menghaoranss).

Head commit for run:
4bf0a4984f71627c15e8bc63798fef5ba54150de / Liang Zhang <[email protected]>
Refactor findLogicTableNameFromMetaData method to use Stream API (#37012)

* Refactor findLogicTableNameFromMetaData method to use Stream API

- Replace traditional for-each loop with functional Stream API approach
- Convert iteration to stream().filter().findFirst().map() chain
- Maintain exact same functionality while improving code readability
- Follow modern Java programming practices and project style

Before:
for (ShardingSphereTable each : schema.getAllTables()) {
    if (each.containsIndex(logicIndexName)) {
        return Optional.of(each.getName());
    }
}
return Optional.empty();

After:
return schema.getAllTables().stream()
        .filter(table -> table.containsIndex(logicIndexName))
        .findFirst()
        .map(ShardingSphereTable::getName);

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>

* Refactor findLogicTableNameFromMetaData method to use Stream API

- Replace traditional for-each loop with functional Stream API approach
- Convert iteration to stream().filter().findFirst().map() chain
- Maintain exact same functionality while improving code readability
- Follow modern Java programming practices and project style

Technical Details:
- Refactored IndexMetaDataUtils.findLogicTableNameFromMetaData method
- Reduced code from 7 lines to 1 line using Stream API
- Preserved all original logic and error handling
- Enhanced code maintainability and readability

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>

* Refactor SchemaMetaDataUtils

---------

Co-authored-by: Claude <[email protected]>

Report URL: https://github.com/apache/shardingsphere/actions/runs/19079771955

With regards,
GitHub Actions via GitBox

Reply via email to