[ https://issues.apache.org/jira/browse/SPARK-36308?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Karen Feng updated SPARK-36308: ------------------------------- Description: Refactor some exceptions in [QueryParsingErrors|https://github.com/apache/spark/blob/master/sql/catalyst/src/main/scala/org/apache/spark/sql/errors/QueryParsingErrors.scala] to use error classes. There are currently ~100 exceptions in this file; so this PR only focuses on the third set of 20. {code} fromToIntervalUnsupportedError mixedIntervalUnitsError dataTypeUnsupportedError partitionTransformNotExpectedError tooManyArgumentsForTransformError notEnoughArgumentsForTransformError invalidBucketsNumberError invalidTransformArgumentError cannotCleanReservedNamespacePropertyError propertiesAndDbPropertiesBothSpecifiedError fromOrInNotAllowedInShowDatabasesError cannotCleanReservedTablePropertyError duplicatedTablePathsFoundError storedAsAndStoredByBothSpecifiedError operationInHiveStyleCommandUnsupportedError operationNotAllowedError descColumnForPartitionUnsupportedError incompletePartitionSpecificationError computeStatisticsNotExpectedError addCatalogInCacheTableAsSelectNotAllowedError {code} For more detail, see the parent ticket SPARK-36094. was: Refactor some exceptions in [QueryParsingErrors|https://github.com/apache/spark/blob/master/sql/catalyst/src/main/scala/org/apache/spark/sql/errors/QueryParsingErrors.scala] to use error classes. There are currently ~100 exceptions in this file; so this PR only focuses on the first set of 20. {code} repetitiveWindowDefinitionError invalidWindowReferenceError cannotResolveWindowReferenceError joinCriteriaUnimplementedError naturalCrossJoinUnsupportedError emptyInputForTableSampleError tableSampleByBytesUnsupportedError invalidByteLengthLiteralError invalidEscapeStringError trimOptionUnsupportedError functionNameUnsupportedError cannotParseValueTypeError cannotParseIntervalValueError literalValueTypeUnsupportedError parsingValueTypeError invalidNumericLiteralRangeError moreThanOneFromToUnitInIntervalLiteralError invalidIntervalLiteralError invalidIntervalFormError invalidFromToUnitValueError {code} For more detail, see the parent ticket SPARK-36094. > Refactor third set of 20 query parsing errors to use error classes > ------------------------------------------------------------------ > > Key: SPARK-36308 > URL: https://issues.apache.org/jira/browse/SPARK-36308 > Project: Spark > Issue Type: Sub-task > Components: Spark Core, SQL > Affects Versions: 3.2.0 > Reporter: Karen Feng > Priority: Major > > Refactor some exceptions in > [QueryParsingErrors|https://github.com/apache/spark/blob/master/sql/catalyst/src/main/scala/org/apache/spark/sql/errors/QueryParsingErrors.scala] > to use error classes. > There are currently ~100 exceptions in this file; so this PR only focuses on > the third set of 20. > {code} > fromToIntervalUnsupportedError > mixedIntervalUnitsError > dataTypeUnsupportedError > partitionTransformNotExpectedError > tooManyArgumentsForTransformError > notEnoughArgumentsForTransformError > invalidBucketsNumberError > invalidTransformArgumentError > cannotCleanReservedNamespacePropertyError > propertiesAndDbPropertiesBothSpecifiedError > fromOrInNotAllowedInShowDatabasesError > cannotCleanReservedTablePropertyError > duplicatedTablePathsFoundError > storedAsAndStoredByBothSpecifiedError > operationInHiveStyleCommandUnsupportedError > operationNotAllowedError > descColumnForPartitionUnsupportedError > incompletePartitionSpecificationError > computeStatisticsNotExpectedError > addCatalogInCacheTableAsSelectNotAllowedError > {code} > For more detail, see the parent ticket SPARK-36094. -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org