Skip to content

HIVE-29786: Support SELECT * EXCLUDE syntax for column omission - #6665

Open
Aggarwal-Raghav wants to merge 1 commit into
apache:masterfrom
Aggarwal-Raghav:HIVE-29786
Open

HIVE-29786: Support SELECT * EXCLUDE syntax for column omission#6665
Aggarwal-Raghav wants to merge 1 commit into
apache:masterfrom
Aggarwal-Raghav:HIVE-29786

Conversation

@Aggarwal-Raghav

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

To add support for exclusion of cols from wide table

Why are the changes needed?

When querying wide tables, users often want to select almost all columns while exclusing a few like PI (personal information) columns. QueryEngines like Snowflake, DuckDB, BigQuery etc. support this feauture
DuckDB: https://duckdb.org/docs/sql/query_syntax/select.html#exclude-and-replace
SELECT * EXCLUDE (col_name)
Snowflake: https://docs.snowflake.com/en/sql-reference/sql/select#parameters
SELECT * EXCLUDE (col_name)
BigQuery: https://docs.cloud.google.com/bigquery/docs/reference/standard-sql/query-syntax#select_except
SELECT * EXCEPT(col_name)

Does this PR introduce any user-facing change?

Yes, introduces a new SELECT * EXCLUDE(col_name) FROM tbl and SELECT a.* EXCLUDE (col_name) FROM tbl syntax

How was this patch tested?

Wrote a q file

mvn test -Dtest=TestMiniLlapLocalCliDriver -Dqfile=select_exclude.q -Drat.skip -Pitests -pl itests/qtest -Dtest.output.overwrite

@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants