Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2022 06:10 AM
We used below condition to resolve the issue
if dict(df.dtypes)['test'] != 'array<string>':
df = df.withColumn("test",col("test").cast(newteststruct))
Thank you