假设我从 SQL
我传的剧本 Spark.SQL
```
results = spark.sql("SELECT EndDate FROM countDirectorySize WHERE Path IN (SELECT Path FROM countDirectorySize WHERE EndDate = (SELECT MAX(EndDate) FROM countDirectorySize)) ORDER BY EndDate DESC LIMIT 1")
print(results.show())
o/p-
+----------+
| EndDate|
+----------+
|2020-06-08|
+----------+
我想把 `2020-06-08` 并将其传递给python脚本。
1条答案
按热度按时间jjjwad0x1#
其他方法也可以