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.

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group