Member since
04-25-2022
2
Posts
1
Kudos Received
1
Solution
My Accepted Solutions
Title | Views | Posted |
---|---|---|
990 | 04-26-2022 02:42 AM |
04-26-2022
02:42 AM
1 Kudo
I got the answer myself: this is because of version f-string is available after python 3.1 but I run it in python version 2.6. so got error, now I rewrite the function with out f-string: def hive_read_func(tables, frames): for table, frame in zip(tables, frames): inner_code = "select * from"+" "+ str(table) globals()["dttf"+str(frame)] = spark.sql(inner_code)
... View more