We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
watermark
1 parent 990af63 commit 654c512Copy full SHA for 654c512
python/pyspark/sql/functions.py
@@ -1163,7 +1163,10 @@ def check_string_field(field, fieldName):
1163
raise TypeError("%s should be provided as a string" % fieldName)
1164
1165
sc = SparkContext._active_spark_context
1166
- time_col = _to_java_column(timeColumn)
+ if isinstance(timeColumn, Column):
1167
+ raise TypeError("timeColumn should be the name of time column, and provided as a string.")
1168
+ else:
1169
+ time_col = _to_java_column(timeColumn)
1170
check_string_field(windowDuration, "windowDuration")
1171
if slideDuration and startTime:
1172
check_string_field(slideDuration, "slideDuration")
0 commit comments