Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Create exception only when it is neccessary
  • Loading branch information
urosstan-db committed Jun 27, 2024
commit a923487b1bdb8672c0e6feabf18bb5d9eac830e9
Original file line number Diff line number Diff line change
Expand Up @@ -165,11 +165,15 @@ object ResolveDefaultColumns extends QueryErrorsBase
*
* The column "DEFAULT" will be resolved to the default value expression defined for the column of
* the assignment key.
*
* IMPORTANT: The 'invalidColumnDefaultException' argument must be lazy until the exception
* is actually thrown, because the instantiation of SparkThrowable exception results in
* reading the file error-classes to format exception message.
*/
def resolveColumnDefaultInAssignmentValue(
key: Expression,
value: Expression,
invalidColumnDefaultException: Throwable): Expression = {
invalidColumnDefaultException: => Throwable): Expression = {
key match {
case attr: AttributeReference =>
value match {
Expand Down