ekas-7 opened a new pull request, #864: URL: https://github.com/apache/wayang/pull/864
## Summary - Keep column names on `TableSource`, including when the operator is copied. - When a JDBC scan has no projection or aggregation, select those columns instead of `*`. `JdbcTableSource.createSqlClause()` still returns only the table name, so it stays in the `FROM` clause (`SELECT name, age FROM customer`). - Names that are not plain identifiers, such as `ST_AsText(geom)`, still use `*`. - `WayangTableScan.fields` is now used to choose which columns are passed to the table source. ## Test plan - [x] `TableSourceTest` (names are kept, and a copy does not share the array) - [x] `JdbcExecutorTest`: declared columns, expression-style names, and a projection overriding the source columns - [ ] Trino and Presto full-scan assertions updated to expect the explicit column list (`SELECT order_id, customer_id, region, amount FROM orders`) Fixes : #648 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
