anishshri-db commented on code in PR #55672:
URL: https://github.com/apache/spark/pull/55672#discussion_r3277083839
##########
sql/api/src/main/scala/org/apache/spark/sql/streaming/DataStreamWriter.scala:
##########
@@ -217,6 +232,26 @@ abstract class DataStreamWriter[T] extends
WriteConfigMethods[DataStreamWriter[T
@throws[TimeoutException]
def toTable(tableName: String): StreamingQuery
+ /**
+ * Validates that a streaming sink name only contains alphanumeric
characters and underscores.
+ *
+ * @param sinkName
+ * the sink name to validate
+ * @throws AnalysisException
+ * if the sink name contains invalid characters
+ */
+ private[sql] def validateSinkName(sinkName: String): Unit = {
Review Comment:
Is there some utils method we could reuse here ?
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]