Github user janewangfb commented on a diff in the pull request:
https://github.com/apache/spark/pull/18023#discussion_r118133059
--- Diff:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/unresolved.scala
---
@@ -84,6 +84,28 @@ case class UnresolvedTableValuedFunction(
}
/**
+ * Represents all of the input attributes to a given relational operator,
for example in
+ * "SELECT `(id)?+.+` FROM ...".
+ *
+ * @param table an optional table that should be the target of the
expansion. If omitted all
+ * tables' columns are produced.
+ */
+case class UnresolvedRegex(regexPattern: String, table: Option[String])
+ extends Star with Unevaluable {
+ override def expand(input: LogicalPlan, resolver: Resolver):
Seq[NamedExpression] = {
+ table match {
+ // If there is no table specified, use all input attributes that
match expr
+ case None => input.output.filter(_.name.matches(regexPattern))
+ // If there is a table, pick out attributes that are part of this
table that match expr
--- End diff --
for this diff, we support column only.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]