Commit Graph

9816 Commits

Author SHA1 Message Date
a832d24206 [doc](typo) remove the LTS version explanation about 1.2.x (#18459) 2023-04-11 12:01:40 +08:00
Pxl
da2d0bba74 [Chore](case) move some mv case from feut to p0 (#18475)
move some mv case from feut to p0
2023-04-11 11:48:55 +08:00
e562017801 [feature](table-metadata) support altering the property "light_schema_change" for the tables which created before 1.2 (#17704) 2023-04-11 11:09:43 +08:00
c13f806e53 [Refactor](multi catalog)Split ExternalFileScanNode into FileQueryScanNode and FileLoadScanNode (#18342)
Split ExternalFileScanNode into FileQueryScanNode and FileLoadScanNode.
Remove some useless code in FileLoadScanNode.
Remove unused config item: enable_vectorized_load and enable_new_load_scan_node
2023-04-11 10:30:38 +08:00
101737023c [Bug](round) fix wrong scale for round-like function (#18507) 2023-04-11 09:36:59 +08:00
1c0698e2d7 [bug](be) fix accept null predicate mem leak (#18510) 2023-04-11 09:08:06 +08:00
317c9491c2 modify datev2 (#18512) 2023-04-11 08:54:49 +08:00
99195f9de9 [chore](third-party) Porting to Clang-16 (#18515)
Fix the error implicit-function-declaration which raises when building libunixodbc and gsasl by Clang-16 on Linux.
2023-04-11 00:53:38 +08:00
a6d25ef8d0 [Enhancement](Backup) support show create repository (#17299)
support show create repository stmt.
2023-04-11 00:11:00 +08:00
275d955762 [enhancement](audit) print Nereids flag to fe.audit.log (#18517) 2023-04-10 21:28:09 +08:00
e62286d44c [minor](fe) ignore expired alter job when replay, to save memory (#18508)
Skip expired alter job when replay
2023-04-10 18:37:27 +08:00
512718f629 [enhancement](Nereids)(planner) fix some problem in Nereids and legacy planner (#18280)
1. remove TypeCoercion and CharacterLiteralTypeCoercion
2. Nereids Cast do not relay on legacy planner's analyze()
3. fix below problem in legacy planner, after this PR
    a. BOOLEAN can cast to DECIMALV2 explicitly
    b. compare between BOOLEAN and DATE will cast both side to DOUBLE
    c. HLL cannot be implicitly cast to any other type
2023-04-10 18:25:33 +08:00
Pxl
297764b37d [Chore](build) fix some compile fail on gnu20 && remove some unused compatibility codes (#18467) 2023-04-10 18:05:52 +08:00
1470d37c42 [enhancement](Nereids) choose aggregate phase by group-by-key unique property (#18423)
when group-by-keys does not contain unique column
1. with out distinct: we prefer two phase aggregate to one phase aggregate
2. with distinct: we prefer three phase aggregate to two phase aggregate
2023-04-10 16:30:51 +08:00
9700721982 [feature-wip](resource-group) Support create and show resource groups (#18184) 2023-04-10 15:18:48 +08:00
9c900cb6d2 [fix](multi catalog) fix show catalogs after drop (#18481)
steps to repo:
1, create any catalog re; [OK]
2, switch re [OK]
3, show catalogs [OK]
4, drop catalog re [OK]
5, show catalogs [FAIL with "Current catalog is not exist, please switch catalog." ]

expect:
show catalogs should always be OK, not depends on current catalog.
2023-04-10 14:13:12 +08:00
a8315b86ca [refactor](planner) using crchash replace murmurhash in the runtime filter (#18472)
When the be_exec_version is less than 2, murmurhash will still be used, otherwise crc32 will be used. When the be_exec_version is upgraded to 2, please remove.
2023-04-10 14:12:39 +08:00
012a261f69 [FIX](complex-type) fixed complex type with create_column_const_with_default_value #18463 2023-04-10 14:11:15 +08:00
6413ede8c5 [docs](clion) Add Clion remote development and debugging documents. (#18490)
* [docs] Add clion remote development and debugging documents.

* Add blanks.
2023-04-10 14:01:18 +08:00
2034d36816 [Fix](Nereids) runtime filter generation terminate incorrectly when visit NLJ (#18464)
if inner join implemented by NLJ, the runtime filter generation phase will be terminated and children are not be travelled. we fix it by adjust the order of travelling children and handle the node itself.
2023-04-10 13:05:03 +08:00
735cd15a3d [fix](nereids) PushdownAliasThroughJoin should handle same column with different alias in project list (#18470) 2023-04-10 11:50:37 +08:00
bb486d840e [fix](Nereids) use bottom up for SemiJoin Transpose (#18483) 2023-04-10 11:43:36 +08:00
5efafefeda [refactor](string) remove volnitsky search algorithm (#18474) 2023-04-10 10:56:07 +08:00
31bd21437a [FE](mysql) support mysql protocol with precision and scale info for decimal type (#18277) 2023-04-10 10:52:00 +08:00
ea47a6ae59 [fix](hdfs) not setting hadoop username when kerberos enabled (#18485)
1. If we set hadoop user property along with kerberos info, the authentication will fail.
2. fix some minor issue of local fs, follow up #18397
3. Add KW_HOSTNAME to keywords region, follow up #17329
4. Fix tvf not working with pipeline engine, follow up #18376
2023-04-10 09:32:27 +08:00
be398bc258 [fix](catalog) fix NPE when replay from FE image (#18499)
Introduced from #17884.
When replay catalog from image, we should not call `catalog.getProperties()`.
Because it will visit the resource mgr, but resource mgr is not replayed yet.
2023-04-10 09:26:03 +08:00
Pxl
c9b4eaea76 [Chore](storage) change FieldType to enum class #18500 2023-04-10 08:53:44 +08:00
78cb4a8f56 [BugFix](backup) fix show backup with where clause (#17736)
1  show backup where SnapshotName="xxx";  
2. show backup where SnapshotName like "%XXX%"
2023-04-09 20:11:18 +08:00
266d54bb39 [Refine](sql block)unify exception catching for sql block (#17879)
currently, the AnalysisException throw by matchSql will catch immediately.
however, the AnalysisException throws by checkLimitations will catch as UserException.
2023-04-09 20:09:16 +08:00
d749c23bcd [Bugfix](backup) fix show snapshot issue (#17580)
when there is no snapshot, should no result shows.
2023-04-09 20:04:39 +08:00
8d4a7325a9 [regression](join)Add subquery join case to regression test #17865 2023-04-09 18:15:37 +08:00
6bf9bb2bfd [improvement](createtable)fix create table error msg in information_schema database (#18412)
---------

Co-authored-by: wudi <>
2023-04-09 18:11:46 +08:00
f38e00b4c0 [refactor](typesystem) using typeindex to create column instead of type name because type name is not stable (#18328)
---------

Co-authored-by: yiguolei <yiguolei@gmail.com>
2023-04-09 18:08:31 +08:00
8a4a92f658 [Enchancement](compatible) show dateV2/datetimeV2 to date/datetime (#18358)
show dateV2/datetimeV2 to date/datetime

modify show create table
modify desc table
use desc table all to get real type from column ColumnType
2023-04-09 10:34:14 +08:00
12a9214448 [chore](build) Build java udf by default #18255 2023-04-09 10:33:39 +08:00
3d28de6e54 [Enhencement](like) fallback to re2 if hyperscan failed (#18350) 2023-04-09 09:18:13 +08:00
04af1650e5 [Optimize](mutlti-catalog) Opt zlib performance by adding '-O3' cflags. (#18488)
Opt zlib performance by adding '-O3' cflags.
From orc' reader test, it has 2.5x performance boost.
2023-04-09 08:52:48 +08:00
09d98c1663 [BugFix](MTMV)Set enable_mtmv_scheduler_framework master only to avoid regression fail (#18473)
Set enable_mtmv_scheduler_framework master only to avoid regression fail
2023-04-09 08:47:18 +08:00
60c0bbe272 [fix](profile) fix show load query profile (#18487)
Sometimes, `show load profile` will only show part of the insert opertion's profile.
This is because we assume that for all load operation(including insert), there is only one fragment in the plan.
But actually, there will be more than 1 fragment in plan. eg:

`insert into tbl1 select * from tbl1 limit 1` will have 2 fragments.

This PR mainly changes:

1. modify the `show load profile`
   Before:  `show load profile "/queryid/taskid/instanceid";`
   After: `show load profile "/queryid/taskid/fragmentid/instanceid";`

2. Modify the display of `ReadColumns` in OlapScanNode
    Because for wide table, the line of `ReadColumns` may be too long for show in profile.
    So I wrap it and each line contains at most 10 columns names.

3. Fix tvf not working with pipeline engine, follow up #18376
2023-04-09 08:41:18 +08:00
fb50626075 [optimize](string) optimize concat function by SIMD memcpy (#18458)
Optimize concat function 29% up by memcpy_small_allow_read_write_overflow15.
Optimize string functions list: concat, convert_to, mask, initcap, lower, upper.

concat function has 29% up:
2023-04-08 17:05:34 +08:00
58bbd46c65 [Optimization](string) optimize constant empty string compare ( column='', column!='') (#18321)
Optimize constant empty string compare:
(1) When the constant empy string '' (size is 0), we can compare offsets in SIMD directly.

q10: SELECT MobilePhoneModel, COUNT(DISTINCT UserID) AS u FROM hits WHERE MobilePhoneModel <> '' GROUP BY MobilePhoneModel ORDER BY u DESC LIMIT 10;
q11: SELECT MobilePhone, MobilePhoneModel, COUNT(DISTINCT UserID) AS u FROM hits WHERE MobilePhoneModel <> '' GROUP BY MobilePhone, MobilePhoneModel ORDER BY u DESC LIMIT 10;
q12: SELECT SearchPhrase, COUNT(*) AS c FROM hits WHERE SearchPhrase <> '' GROUP BY SearchPhrase ORDER BY c DESC LIMIT 10;
q13: SELECT SearchPhrase, COUNT(DISTINCT UserID) AS u FROM hits WHERE SearchPhrase <> '' GROUP BY SearchPhrase ORDER BY u DESC LIMIT 10;
q14: SELECT SearchEngineID, SearchPhrase, COUNT(*) AS c FROM hits WHERE SearchPhrase <> '' GROUP BY SearchEngineID, SearchPhrase ORDER BY c DESC LIMIT 10;
Issue Number: close #xxx
2023-04-08 16:04:10 +08:00
0517616242 [vectorized](function) support array_repeat function to be compatible with hive syntax (#18028)
---------

Co-authored-by: zhangyu209 <zhangyu209@meituan.com>
2023-04-08 15:50:28 +08:00
5aa58f5ce5 [Feature](multi-catalog) add refresh for catalog if it needs (#17884)
Currently if a catalog is modified externally in doris, doris is not dynamically aware of it.
So if a catalog is created with a refresh time configuration, I added a timer for it to refresh the catalog regularly.
2023-04-08 15:49:50 +08:00
0b8bc51b72 [fix](inverted index) Fix key column match query failed (#18436)
* [fix](inverted index) Fix key column match query failed

* [chore](regression case) add regression case

* [fix] fix regression case no order by
2023-04-08 15:45:08 +08:00
25fba6b8b7 [fix](bdbje) handle RollbackException in BDBJEJournal.open (#18471)
reference:

handle bdb rollbackexception #6582
[fix](bdbje) fix handle bdb RollbackException incorrectly #17483
2023-04-08 15:31:24 +08:00
a2858bbbfc [fix](regression-test) fix wrong http port in regression-test case compaction-with-delete #18484 2023-04-08 15:17:52 +08:00
161678380c [bug](GC)the issue of incorrect disk usage (#18397) 2023-04-08 09:32:36 +08:00
432fef7aa8 [Enhancement](iceberg table)support inPredicate for iceberg table (#18226) 2023-04-08 08:59:23 +08:00
851793aa66 [fix](test) fix p0 regression case test_compaction_with_delete failed (#18479) 2023-04-07 22:11:40 +08:00
936807b5c9 [typo](doc) Fixed typos in SHOW-PROCESSLIST.md (#18469) 2023-04-07 22:02:37 +08:00