beliefer commented on a change in pull request #32951:
URL: https://github.com/apache/spark/pull/32951#discussion_r661924633



##########
File path: 
sql/catalyst/src/main/scala/org/apache/spark/sql/errors/QueryCompilationErrors.scala
##########
@@ -1694,4 +1697,355 @@ private[spark] object QueryCompilationErrors {
     new AnalysisException(
       s"Found duplicate column(s) $colType: ${duplicateCol.sorted.mkString(", 
")}")
   }
+
+  def noSuchTableError(db: String, table: String): Throwable = {
+    new NoSuchTableException(db = db, table = table)
+  }
+
+  def tempViewNotCachedForAnalyzingColError(tableIdent: TableIdentifier): 
Throwable = {
+    new AnalysisException(s"Temporary view $tableIdent is not cached for 
analyzing columns.")
+  }
+
+  def colNotExistError(col: String): Throwable = {
+    new AnalysisException(s"Column $col does not exist.")
+  }
+
+  def colTypeNotSupportStatisticsCollectionError(
+      name: String,
+      tableIdent: TableIdentifier,
+      dataType: DataType): Throwable = {
+    new AnalysisException(s"Column $name in table $tableIdent is of type 
$dataType, " +
+      "and Spark does not support statistics collection on this column type.")
+  }
+
+  def analyzeTableNotSupportedOnViewsError(): Throwable = {
+    new AnalysisException("ANALYZE TABLE is not supported on views.")
+  }
+
+  def notGetExpectedPrefixColError(
+      table: String,
+      database: String,
+      schemaColumns: String,
+      specColumns: String): Throwable = {
+    new AnalysisException("The list of partition columns with values " +

Review comment:
       We could use
   ```
   s"""
      |...
    """.stripMargin
   ```




-- 
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]

Reply via email to