Skip to content

Commit

Permalink
Merge branch 'chernishev-readme-patch-7' of https://github.com/cherni…
Browse files Browse the repository at this point in the history
…shev/Desbordante into chernishev-readme-patch-7
  • Loading branch information
chernishev committed Jun 15, 2024
2 parents dbf256e + 39619b4 commit c7bf15e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/core/model/table/typed_column_data.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ TypeId TypedColumnDataFactory::DeduceColumnType() const {
auto& type_check = kTypeIdToChecker.at(first_type_id);
if (type_check(unparsed_[i])) {
// undelimited and delimited dates have different bitsets
if (first_type_id == +TypeId::kDate) {
if (first_type_id == +TypeId::kDate && kDelimitedDateCheck(unparsed_[i])) {
candidate_types_bitset &= kTypeIdToBitset.at(first_type_id);
}
continue;
Expand Down
4 changes: 2 additions & 2 deletions test_input_data/SimpleTypes1.csv
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Int,String,Double,JustMixed,IntAndDate,Date,MixedWithDate
12341,asdb,3.142,123,3123,2002-04-05,20020405
12312341,justs0mestring,3.,123.,2,2020-02-29,2020-02-29
12341,asdb,3.142,123,20020405,2002-04-05,20020405
12312341,justs0mestring,3.,123.,20200229,2020-02-29,2020-02-29
0,"some string within quotes",-3.142,3.,,2007/12/31,123
-1,"some string"" with quote",-2312.,1111,NULL,"2012.12.12",1
-10101,something,8321937193.0,NULL,NULL,20150228,2
Expand Down

0 comments on commit c7bf15e

Please sign in to comment.