Skip to content

SQL: Fix precision of TIMESTAMP types.#5464

Merged
fjy merged 1 commit intoapache:masterfrom
gianm:fix-sql-time-equality
Mar 6, 2018
Merged

SQL: Fix precision of TIMESTAMP types.#5464
fjy merged 1 commit intoapache:masterfrom
gianm:fix-sql-time-equality

Conversation

@gianm
Copy link
Copy Markdown
Contributor

@gianm gianm commented Mar 3, 2018

Druid stores timestamps down to the millisecond, so we should use
precision = 3. Setting this wrong sometimes caused milliseconds
to be ignored in timestamp literals.

The patch moves type creation to a utility method and fixes the
precision there.

Fixes #5337.

Druid stores timestamps down to the millisecond, so we should use
precision = 3. Setting this wrong sometimes caused milliseconds
to be ignored in timestamp literals.

Fixes apache#5337.
@fjy
Copy link
Copy Markdown
Contributor

fjy commented Mar 3, 2018

👍

@fjy fjy merged commit 0f03ab0 into apache:master Mar 6, 2018
gianm added a commit to implydata/druid-public that referenced this pull request Apr 10, 2018
Druid stores timestamps down to the millisecond, so we should use
precision = 3. Setting this wrong sometimes caused milliseconds
to be ignored in timestamp literals.

Fixes apache#5337.
gianm added a commit to gianm/druid that referenced this pull request Aug 27, 2018
Druid stores timestamps down to the millisecond, so we should use
precision = 3. Setting this wrong sometimes caused milliseconds
to be ignored in timestamp literals.

Fixes apache#5337.
fjy pushed a commit that referenced this pull request Aug 27, 2018
Druid stores timestamps down to the millisecond, so we should use
precision = 3. Setting this wrong sometimes caused milliseconds
to be ignored in timestamp literals.

Fixes #5337.
@jon-wei jon-wei added this to the 0.12.3 milestone Sep 1, 2018
@gianm gianm deleted the fix-sql-time-equality branch September 23, 2022 19:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SQL filtering with "__Time =" does not work in Pivot

3 participants