Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Regular Visitor

Wrong date cast in filter (Spark)


I'm using PowerBi Service with Direct Query to Spark HDinsight. One of my fields in table is timestamp - but when I try to filter my report by specific date, I got blank values. 

I've checked the query sent to Spark and see next:


SELECT (...) `t4` WHERE ( `t4`.`tsday` = CAST( '4/21/2016' AS timestamp) )
SELECT (...) `t4` WHERE ( (`t4`.`tsday`) >= (CAST( '4/21/2016 12:00:01 AM' AS timestamp))

Both cases are unacceptable for Hive, it expects specific format: "yyyy-MM-dd HH:mm:ss.SSS"


I don't have any idea what to do, using time features is very powerful option and it seems like no walkarounds to do it


Community Champion
Community Champion

@romank May I ask how were you able to check the query DirectQuery feature sents to HDInsight ?

@ankitpatira, I can see all queries that thrift server receives in Spark History


Screen Shot 2016-04-26 at 8.41.33 AM.png

Helpful resources

PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors