Apache Kyuubi is a distributed and multi-tenant gateway to provide serverless SQL on data warehouses and lakehouses.
2.11k
stars
915
forks
source link
Prevent triggering spark job when executing the initialization sql #6789
Closed
turboFei closed 2 weeks ago
:mag: Description
Issue References ๐
I found that, the
spark.sql("show databases").isEmpty
will trigger the job with community spark-3.5.2๏ผ3.1 does not).Describe Your Solution ๐ง
Using
dataFrame.take(1).isEmpty
instead ofdataFrame.isEmpty
.Types of changes :bookmark:
Test Plan ๐งช
Behavior Without This Pull Request :coffin:
Behavior With This Pull Request :tada:
Related Unit Tests
No job triggered for
take(1).isEmpty
.Checklist ๐
Be nice. Be informative.