Compare commits
3 Commits
1aa5fe3002
...
7acab5d229
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7acab5d229 | ||
|
|
25efdaac37 | ||
|
|
8e6dff278d |
@@ -69,6 +69,7 @@ utils/local_install.sh
|
||||
|
||||
### TODO
|
||||
- order of arguments in functions like member and filter - filter swap lambda and list
|
||||
- add possibility to specify filename for input2 history file
|
||||
- better output of !e in repl (resp !e !ee)
|
||||
- unify -f and -run options
|
||||
- add debug support, at least call stack
|
||||
|
||||
@@ -79,7 +79,7 @@ void MlPerfMon::restore_callstack_position(size_t to_position) {
|
||||
}
|
||||
|
||||
void MlPerfMon::clear_callstack() {
|
||||
call_stack.empty();
|
||||
auto r = call_stack.empty();
|
||||
}
|
||||
|
||||
void MlPerfMon::print_results() const {
|
||||
|
||||
@@ -162,7 +162,7 @@ TokenType Lexer::type(const std::string &token) {
|
||||
if (token == "not") return TokenType::keyword_not;
|
||||
if (token == "null") return TokenType::keyword_null;
|
||||
if (token == "integer") return TokenType::keyword_integer;
|
||||
if (token == "float") return TokenType::keyword_float;
|
||||
if (token == "float" || token == "double") return TokenType::keyword_float;
|
||||
if (token == "varchar") return TokenType::keyword_varchar;
|
||||
if (token == "date") return TokenType::keyword_date;
|
||||
if (token == "boolean") return TokenType::keyword_bool;
|
||||
|
||||
@@ -12,7 +12,7 @@ std::vector<std::pair<std::string, std::string>> Settings::m_settings =
|
||||
std::make_pair("BOOL_TRUE_LITERAL", "Y"),
|
||||
std::make_pair("BOOL_FALSE_LITERAL", "N"),
|
||||
std::make_pair("DOUBLE_FORMAT", "%.2f"),
|
||||
std::make_pair("USE_INDEXSCAN", "N"),
|
||||
std::make_pair("USE_INDEXSCAN", "Y"),
|
||||
std::make_pair("MAX_PARALLELISM", "1") }; // values "AUTO" or number of workers; when number negative means std::thread::hardware_concurrency() - number
|
||||
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ std::pair<bool, std::vector<rowid_t>> USql::look_for_usable_index(const Node *wh
|
||||
if (used_index != nullptr) {
|
||||
std::vector<rowid_t> rowids = used_index->search((ValueNode *)ron->right.get());
|
||||
#ifndef NDEBUG
|
||||
std::cout << "using index " << table->m_name << "(" << used_index->get_column_name() << "), " << rowids.size() << "/" << table->rows_count() << std::endl;
|
||||
std::cerr << "using index " << table->m_name << "(" << used_index->get_column_name() << "), " << rowids.size() << "/" << table->rows_count() << std::endl;
|
||||
#endif
|
||||
return std::make_pair(true, rowids);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user