I have create a tempview as such as:
df.createOrReplaceTempView("table_test")
However, when I run the following command it doesn't work
%sql select top 10 * from table_test;
Try the following
%sql select * from table_test limit 10;
top 10
is more specific to sql server and not the sql engine being used by your notebooks.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.