Skip to content

Commit

Permalink
feat(tianmu):The tianmu storage engine does not support union query f…
Browse files Browse the repository at this point in the history
…or fields whose data types are datetime and timestamp(stoneatom#1114)
  • Loading branch information
isredstar authored and mergify[bot] committed Jan 10, 2023
1 parent af1508f commit 3fa2aab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions storage/tianmu/core/column_bin_encoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -566,10 +566,10 @@ ColumnBinEncoder::EncoderDate::EncoderDate(vcolumn::VirtualColumn *vc, bool deco
}

bool ColumnBinEncoder::EncoderDate::SecondColumn(vcolumn::VirtualColumn *vc) {
// Possible conversions: support datetime/timestamp.
// Possible conversions: support datetime/timestamp/date.
if (!vc->Type().IsDateTime()) {
tianmu_control_.lock(vc->ConnInfo()->GetThreadID())
<< "Nontrivial comparison: date with non-date." << system::unlock;
<< "Nontrivial comparison: date with non-datetime." << system::unlock;
return false;
}
int64_t new_min_val = types::DT::DateSortEncoding(vc->RoughMin());
Expand Down

0 comments on commit 3fa2aab

Please sign in to comment.