ow(20, false)
} else {
println(s"Error: $responseCode")
connection.disconnect()
}
}
}
On Sun, Mar 31, 2024 at 8:57 PM Lionel CL wrote:
> Hi Nam,
> You can refer to the spark docs
> https://spark.apache.org/docs/latest/sql-data-sources-jdbc.html
>
Hi Nam,
You can refer to the spark docs
https://spark.apache.org/docs/latest/sql-data-sources-jdbc.html
Regards,
Lu Cao
From: Nam Đỗ Duy
Date: Sunday, March 31, 2024 at 08:53
To: dev , u...@kylin.apache.org
Subject: Re: How to query the Cube via API and use the dataset for other purpose
Dear
Dear Sirs/Madames
Could anyone here help me to figureout the way to use scala to query an
select SQL against kylin cube via API then turn that table result into a
dataframe in scala for other purpose?
Thank you so much for your time!
Best regards
On Fri, 29 Mar 2024 at 17:52 Nam Đỗ Duy wrote:
Hi Xiaoxiang,
Sir & Madames,
I use the following code to query the cube via API but I cannot use the
result as a dataframe, could you suggest a way to do that because it is
very important for our project.
Thanks and best regards
===
import org.apache.spark.sql.{D