dongjoon-hyun commented on a change in pull request #28926:
URL: https://github.com/apache/spark/pull/28926#discussion_r449925822



##########
File path: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/collectionOperations.scala
##########
@@ -2674,11 +2679,24 @@ object Sequence {
            |${genSequenceLengthCode(ctx, startMicros, stopMicros, 
intervalInMicros, arrLength)}
           """.stripMargin
 
+      val check = if (scale == MICROS_PER_DAY) {
+        s"""
+           |if ($stepMonths == 0 && $stepDays == 0) {
+           |   throw new IllegalArgumentException(
+           |     "sequence step must be a day interval if start and end values 
are dates");

Review comment:
       Sorry for nit-picking again. But line 2685 has 3 spaces instead of 2 
spaces and line 2686 has 5 spaces instead of 4 spaces.




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

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