cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Bug Report: Date type with year less than 1000 (years 1-999) in spark sql where [solved]

Kotofosonline
New Contributor III

Hi, I noticed unexpected behavior for Date type. If year value is less then 1000 then filtering do not work.

Steps:

create table test (date Date); insert into test values ('0001-01-01'); select * from test where date = '0001-01-01'

Returns 0 rows. Expected 1 row.

Comparison operators is also problematic

1 REPLY 1

Kotofosonline
New Contributor III

Hm, seems to work now.

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local communityโ€”sign up today to get started!

Sign Up Now