dongjoon-hyun commented on a change in pull request #30816:
URL: https://github.com/apache/spark/pull/30816#discussion_r553711463
##########
File path: docs/sql-ref-syntax-qry-select.md
##########
@@ -151,6 +151,18 @@ SELECT [ hints , ... ] [ ALL | DISTINCT ] {
named_expression [ , ... ] }
Specifies aliases for one or more source window specifications. The
source window specifications can
be referenced in the widow definitions in the query.
+
+* **regex_column_names**
+
+ When `spark.sql.parser.quotedRegexColumnNames` is true, quoted
identifiers (using backticks) in `SELECT`
+ statement are interpreted as regular expressions and `SELECT` statement
can take regex-based column specification.
+ For example, below SQL will only take column `c`:
+
+ ```sql
+ SELECT `(a|b)?+.+` FROM (
+ SELECT 1 as a, 2 as b, 3 as c
+ ) src
Review comment:
```
spark-sql> SELECT a FROM (SELECT 1 as a, 2 as b, 3 as c);
1
```
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]