Commit Graph

1219 Commits

Author SHA1 Message Date
725468f8a2 Fix bug of getting ES host error (#2342) 2019-12-01 13:06:32 +08:00
6fbb5b31fa Need to check the return status of push_memtable (#2328)
When `BlockingQueue` is shutdown, the `blocking_put()` will return false,
we could not ignore it.
2019-11-30 17:17:46 +08:00
a3ccf2a607 Make BE CMakeLists.txt apply mac dev (#2337) 2019-11-29 22:14:48 +08:00
c5f7f7e0f4 Check the return status of _flush_memtable_async() (#2332)
This commit also contains some adjustments of the forward declaration
2019-11-29 21:05:17 +08:00
5ac4f3468e Remove old decommission job (#2326)
DecommissionJob is also a type of AlterJob.
When AlterJobV2 was introduced before, DecommissionJob was not modified accordingly.

In fact, the Decommission operation does not need to generate a Job, but only need to mark the corresponding Backend state as Decommission. After that, the tablet repair logic will try to migrate the tablet on that Backend. And SystemHandler only needs to check all nodes marked as decommission, and then drop the emptied nodes.
2019-11-29 21:02:53 +08:00
8787a59cb4 Make FE compile support Mac (#2334) 2019-11-29 20:50:35 +08:00
d937f7b51e Fix the error of stream load doc (#2340) 2019-11-29 16:33:08 +08:00
ba76504fdc Fixed a bug that FE config 'async_load_task_pool_size' missing @ConfField annotation (#2339)
This will cause 'async_load_task_pool_size' not configurable.
2019-11-29 14:11:51 +08:00
8bf00afa25 Create table with nullable column for default (#2256)
Change the default column null property to nullable
2019-11-29 11:11:31 +08:00
ba3d16f4c7 Add BinaryPrefixPage (#2308) 2019-11-29 07:39:11 +08:00
6e33308472 Show tablet lists in EXPLAIN OlapScanNode (#2316) 2019-11-29 07:38:47 +08:00
814e486113 Support ifnull fe builtin function (#2292) (#2327) 2019-11-28 22:10:08 +08:00
324f1b8f51 Unify the type of path_hash to size_t (#2324)
The type of path hash should be `size_t`(i.e. `uint32_t`),
but the current code mixes `int64_t`, ` int32_t` and `size_t`
2019-11-28 18:48:52 +08:00
e7b05f7eb3 Date format support java date style "yyyy-MM-dd HH:mm:ss" (#2309) 2019-11-28 14:34:31 +08:00
c33789ee49 Update insert-into-manual_EN.md (#2323)
Modify the description error for the enable_insert_strict parameter
2019-11-28 14:00:33 +08:00
02d7c486e1 Update insert-into-manual.md (#2322)
Modify the description error for the enable_insert_strict parameter
2019-11-28 13:59:54 +08:00
a2d7c42042 Add a variable to specifically limit the memory usage of the load part in the insert operation (#2305)
This variable is mainly for INSERT operation, because INSERT operation has both query and load part.
Using only the exec_mem_limit variable does not make a good distinction of memory limit between the two parts.
2019-11-28 13:03:11 +08:00
036ef5bcb9 Add a tool to show segment status (#2260)
In order to be aware of the convert process from AlphaRowset to BetaRowset, we need a mechanism to know the process of convert.
2019-11-27 11:35:16 +08:00
ccbd65daeb Ensure ES endpoint without http prefix can work (#2303) 2019-11-26 22:52:10 +08:00
569d0bb3af Replace all remaining boost::split() with strings::split() (#2302) 2019-11-26 22:22:14 +08:00
f716fd2b0b Ignore non-existent tablet in clear_transaction_task() (#2296)
This commit also remove some duplicated logs, which are duplicated
printed inside and outside the function
2019-11-26 08:17:56 -06:00
a465b38874 Enhance doris on es error message (#2297)
Enhance doris on es error message and modify some field data transform error.
For varchar/char type, sometimes elasticsearch user post some not-string value to Elasticsearch Index. because of reading value from _source, we can not process all json type and then just transfer the value to original string representation this may be a tricky, but we can workaround this issue
2019-11-26 18:32:25 +08:00
78cee0050d Fix IFNULL constants compute error (#2290) (#2291) 2019-11-25 18:47:36 +08:00
1a97bacc32 Replace boost::split() with strings::Split() in storage options (#2277) 2019-11-25 09:32:41 +08:00
d5aeb9a6b7 Add document for session variables. (#2284)
Also make the variable effective in current session when setting it globally.
2019-11-24 22:47:05 +08:00
e98bbb5bc5 Refactor clone task (#2285)
In the previous implementation, clone task will continue download files
even if some error happened. This may cause unexpected problem. This
Change List refactor it to that when error happends, clone task will
fail total and try to clone from another remote source.

Besides above change, I call FileUtils::remove_all and create_dir
instead of boost one, which may cause exception. What's more
AgentMasterClient is replaced with ThriftRpcHelper, by this change
conncection can be reused.
2019-11-24 22:36:10 +08:00
9247da9bcc Fix deregister_recvr no cancel_stream bug (#2286) 2019-11-24 20:13:08 +08:00
885019a75b Make DataStreamRecvr cancel_stream out of lock (#2281) 2019-11-23 16:52:49 +08:00
764fa70aa3 Fix is not null bug #2278 (#2279) 2019-11-23 00:29:38 +08:00
46181c0880 Fix some bugs about load label (#2241) 2019-11-23 00:04:45 +08:00
7bf89793fd Move dtor of BetaRowset to cpp file (#2276)
There are many jobs in its dtor, so should not be inline
2019-11-23 00:04:25 +08:00
fda46654a2 Support setting properties for storage_root_path (#2235)
We can specify the properties of storage_root_path by setting ':', seperate by ','
e.g.
storage_root_path = /home/disk1/palo,medium:ssd,capacity:50
2019-11-22 18:12:26 +08:00
0e84a88c1a Fix document bugs in spark-doris-connector (#2275) 2019-11-22 18:05:36 +08:00
732c473043 Add spark-doris-connector extension (#2228) 2019-11-22 15:38:05 +08:00
79ff0ad2a4 Add pipes_as_concat_mode (#2252)
This commit will add a new sql mode named MODE_PIPES_AS_CONCAT:
Description:
1、If this mode is active, '||' will be handled different from the original way ('||' and 'or' are seen as the same symbols in Doris) that it can be used to concat two exps and returns a new string. For example, 'a' || 'b' = 'ab' and 1 || 0 = '10'.
2. User can active this mode by "SET sql_mode = PIPES_AS_CONCAT", and deactive it by "SET sql_mode = '' ".
2019-11-22 15:01:53 +08:00
297542bd3f Delay start master only daemon threads (#2268)
These daemon thread should be started after catalog is ready,
otherwise it may cause some undefined behavior.
2019-11-22 14:39:37 +08:00
f7d3af1f0a Fix export job bug (#2250)
The query type of export job plan is SELECT, not LOAD.
We need to remove the assertion.
2019-11-21 22:00:39 +08:00
bcc876e0de Fix some typos and grammar mistakes (#2269) 2019-11-21 21:40:56 +08:00
4fb498a1dc fix unit test failure for show columns from unknown table (#2261) 2019-11-21 21:38:36 +08:00
9c85a04580 Add schema hash to tablet proc info (#2257) 2019-11-21 10:06:30 +08:00
88236de63e Fix bug for showing columns from non exist table doesn't prompt error (#2254) 2019-11-20 19:02:34 +08:00
d72fbdf425 Support bitmap index build (#2050)
This PR implements the build part of bitmap index support. It follows most of the design described in #1684 , but with the following differences and enhancements

1. Bitmap indexes are now written in the segment file for simplicity. Separate index file would be helpful when we're going to support `alter table add bitmap index` in the future though.
2. We switch to a generalized index page format for all data types rather than specialize for each one. Code simplicity and reusability is preferred here than optimal compression rate.
3. We introduce a new abstraction called `IndexedColumn` to unify the processing of the dictionary section and bitmap section of bitmap index. IndexedColumn is a column with an optional ordinal index and an optional value index. Ordinal index enables us to seek to a particular rowid within the column. Value index requires IndexedColumn to store ordered values and enables us to seek to a particular value. Therefore, the dictionary section can be represented by an IndexedColumn with value index and the bitmap section can be represented by an IndexedColumn with ordinal index.
2019-11-20 13:51:21 +08:00
aedccc4ec4 fix npe for null stats (#2253) 2019-11-20 13:03:58 +08:00
46005bf6ba Fix bug for show create table statement with unique key types (#2231) 2019-11-20 10:02:04 +08:00
9be86a3db8 Add gutil split and strip tool (#2238)
With these two tools, we can very easily perform splitting
and trimming operations on strings.

The subsequent PR will use them to replace the existing
`boost::split()` and `boost::trim()`
2019-11-20 09:58:52 +08:00
9b5eeaec19 Fix bug that DeployManager should start working after catalog is ready. (#2244)
Otherwise, it can not get master ip/port from not-ready catalog.
2019-11-20 09:49:09 +08:00
c9db1a5b2d Fix schema change validate failure #2230 (#2233) 2019-11-19 23:17:06 +08:00
03a5359e4a Fix the line breaks to '\n' (#2234)
[gutil]
2019-11-19 18:51:05 +08:00
14769b0beb Improve to_bitmap parse int performance (#2223) 2019-11-19 18:00:19 +08:00
42a4fff562 Replace boost canonicalize (#2209) 2019-11-19 17:57:37 +08:00