Commit Graph

45 Commits

Author SHA1 Message Date
青年 b385c45c35
chore:remove copyright in license header (#2090)
Co-authored-by: imbajin <jin@apache.org>
2023-01-13 23:26:52 +08:00
青年 df05b2b1b0
let sub-modules use revision (#2039) 2022-11-30 00:32:17 +08:00
青年 67a689c86c refact: adapt all to apache package and dependencies (Breaking Changes) 2022-11-23 21:16:14 +08:00
zyxxoo 66b167422f
fix: User-controlled data in numeric cast [#1987] (#1996)
* fix: User-controlled data in numeric cast [#1987]
2022-10-30 23:29:50 +08:00
青年 8abf3d5524
chore: support check license header with RAT & fill the gaps (#1988) 2022-10-26 19:43:41 +08:00
xiaoleizi2016 b699c5cd62
refact: modify abnormal logs (#1948) 2022-10-08 19:27:38 +08:00
dependabot[bot] 8f4e95d3ec
build(deps): bump postgresql in /hugegraph-postgresql (#1960)
Bumps [postgresql](https://github.com/pgjdbc/pgjdbc) from 42.1.4 to 42.4.1.
- [Release notes](https://github.com/pgjdbc/pgjdbc/releases)
- [Changelog](https://github.com/pgjdbc/pgjdbc/blob/master/CHANGELOG.md)
- [Commits](https://github.com/pgjdbc/pgjdbc/compare/REL42.1.4...REL42.4.1)

---
updated-dependencies:
- dependency-name: org.postgresql:postgresql
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-01 18:21:18 +08:00
Jermy Li 6861f12662
support updateIfPresent/updateIfAbsent operation (#1897)
* support updateIfPresent/updateIfAbsent operation

Change-Id: I63f179e0b6c2e2f86e6ae185ce3a7115a4da7657

* implement for other backends

Change-Id: Iab9ab42ba0504664ce3320c8905b2d92d01d849a

* fix mysql/pgsql

Change-Id: I397fd5d300c563cd9298b76ab336bff78f2564ea

* call updateIfAbsent() for schema insert

Change-Id: I02989962791fa369600f8dedbfd56e2b40c79077

* add updateSchema() api for schema tx

Change-Id: I760db3c964f913d3c552c1d85193d9f3e0d401a4

* Do schema update in the lock block

Change-Id: I2daad8825939b04ff9b1374fff930ac9c4173f72

* fix '~task_status' not indexed in label '~task'

Change-Id: I6383df825a003ff0e3f619398ee7c2873194eb56
2022-07-06 19:50:30 +08:00
zyxxoo 2af01bc92d
Add system schema store (#1891)
* Add meta table into system store
* Add system schema store
* Add test case for read version
* Let AbstractBackendStore impl default storedVersion()
* fix small bug og HugeProject
* add test for SystemSchemaStore
* fix initStore schema missed

Change-Id: I5c9d65c4ae022cb84592e8f2aa57bd7485cd12e4
Co-authored-by: liningrui <liningrui@baidu.com>
2022-06-02 16:42:46 +08:00
zyxxoo 85b01b2333
chore: java 11 version support (#1653) 2022-04-25 19:13:30 +08:00
Jermy Li 8d52abb2a0
HugeGraph-622: Bump up to version 0.13.0 (#1740) 2022-04-21 14:15:46 +08:00
YangJiaqi 035a03e1df
feat(hbase): support hash rowkey struct & pre-init tables (#1696) 2022-04-06 17:17:49 +08:00
Josh Soref 5368f3205e
Spelling corrections (#1798)
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
Co-authored-by: Josh Soref <jsoref@users.noreply.github.com>
2022-03-30 17:12:18 +08:00
Jermy Li 47aa1c946f
Bump httpclient from 4.5.2 to 4.5.13 (#1706)
also fix added leading "/" into url by URIBuilder:
https://github.com/hugegraph/hugegraph/pull/1487#issuecomment-998749310

Change-Id: I71aa4f75bf53fd3841f51856af3df85169b37d66
2021-12-22 13:54:48 +08:00
zhoney ef37b3ac96
support olap writeback for cassandra and rocksdb (#1506)
* support olap writeback for cassandra and rocksdb
* add olap property key tests
* clear vertex cache when olap pk changed
* support config data disk for olap pk when using rocksdb backend
* rename read frequency to write type

Change-Id: I947c3a96eb7aa67ee9eff5f7fb248e9f4539e91b
2021-07-22 23:53:49 +08:00
Linary e05850b5d5
Upgrade version to 0.12.0 (#1372)
Change-Id: Ia7eab6e7c88816234204ec6e60fc807f25e71212
2021-03-26 18:00:34 +08:00
zhoney f9b3b9e757
upgrade store version due to read frequency of property key (#1341)
Change-Id: Ie8643276d572e7eabee24f13ea0ee4ac38e60e5b
2021-01-21 20:13:11 +08:00
zhoney 278f15f296
fix psotgresql init failed due to not exist same name db with user (#1293)
fixed: #1285
Change-Id: I955fb0a474904470355b92dbc9bf3aa08ea4f61e
2020-12-14 15:56:02 +08:00
Linary 2df4f680d4
Update cache from raft StateMachine (#1119)
Change-Id: I743de35eb35409ebf4ff2507564cfe2c82c79fe9
2020-07-29 18:07:37 +08:00
Jermy Li 3a7316dcc8
fix query adjacent by filtering conditions with limit (#1057)
* fix query adjacent by filtering conditions with limit
* improve test for: out().limit(m).has(k,v).limit(n)
* uniform edges order with sortkey
* fix invalid byte of postgre utf8 encoding

fix #1052

Change-Id: I11075c56e89a57cbf8e599a2e5fa6c0122663f6d
2020-07-02 11:11:49 +08:00
Jermy Li 07cc67e8a7
Skip expired_time when not needed (#1044)
* improve perf: skip expired_time for TextSerializer and TableSerializer
* fix mysql ttl insert template
* fix pgsql ttl insert template
* fix HugePermission.match()

Change-Id: Ic607b372ba61ac5768b81497d4ae7b2d4f4342f4
2020-06-18 14:31:20 +08:00
zhoney cadc15ab86
support ttl for vertex and edge (#794)
* support edgeLabel ttl
* extract async deletion from serializer to GraphIndexTransaction
* change HugeIndex structure
* support vertex label ttl
* move expired objects delete out of gtx
* get now time from tx
* add ttl filed in BackendEntry for Cassandra and Hbase
* set tx openedTime in setOpened() of transaction

implemented: #295

Change-Id: I16a762c5aa850f14cbd554d29fb8592db87e7619
2020-05-14 11:07:38 +08:00
Jermy Li 409bdbb83b
add grant permission api (#985)
* add grant permission api
* upgrade version to 0.11.1
* share usermanager

Change-Id: I58e6e5a8c950ad74fc1ccbcee8e8ca28d48a27e9
2020-05-11 15:33:41 +08:00
Jermy Li 17417dfff5
implement users store and access control (#749)
* support users auth
* implement authenticate()
* support fine-grained access control
* add permission access edge label
* fix admin
* support gremlin permission details control
* commit manually
* fix some errors of new code
* use BCrypt to check password

implement: #209
Change-Id: I6492c284b6677b9dd1ef545aaf08c5d6e5cf8ad7
2020-04-23 17:14:22 +08:00
Linary 1fe09d0dd2
Increase task result limit (#925)
* Increase task result limit
* Let task input and result property datatype as blob
* Support config task input and result size limit

Change-Id: Ib2c4bdf25e4604d8bea47802e724c0f0934170fb
2020-04-06 19:26:23 +08:00
Jermy Li 52e8f4215a
encode label id in string index (#894)
Change-Id: I963f7a10449faf90b67e2536bb0a286abe2225fa
2020-03-30 11:05:06 +08:00
Linary ef68289633 Record create time when create schema (#746)
Change-Id: I8a1156d4262969c1b287f1eac999614549d81b3a
2019-12-24 17:37:51 +08:00
Linary dbf5eb53cb Upgrade version to 0.11.0 (#739)
Change-Id: I565dbbe34f746ca5d7fed0f29bdd6e0bf46b4675
2019-11-11 14:24:13 +08:00
Jermy Li 5878d8f61d fix: The backend store of 'xx' has not been initialized (#708)
The backend has been initialized, but this error is still raised.

fix: #632

Change-Id: I9890559365c01bd73bc85c25e1cb058c2637fb0d
2019-11-04 11:28:45 +08:00
zhoney 00faffdf74 support aggregate property (#693)
implemented: #691

Change-Id: I340d7be28090718537e1a531147f1e1155a1beb5
2019-10-12 17:32:28 +08:00
imbajin 9d8ceb4dfc Optimize update logic & add a new strategy (#673)
1. if original data is not null but new data is null, use original data instead of null
2. add update strategy "OVERRIDE"
2019-09-24 20:26:07 +08:00
Jermy Li efcd839ee2 support bin serialization for cassandra (#680)
Change-Id: Ib4f48f3235ac9e5526c63c5617e3819ab4d29711
2019-09-17 11:14:30 +08:00
Jermy Li 1208522699 Reduce the storage of vertex/edge id (#661)
Change-Id: I374deb904ae8ca20b5768ebc7976f831ec558e3e
2019-09-12 21:12:25 +08:00
Linary 1c062b8947 Upgrade tinkerpop version to 3.4.3 (#648)
Change-Id: I5443b6a05eea74205a373f093dad27536e04f0be
2019-09-12 19:04:30 +08:00
Jermy Li d47f309da1 sort results of search index by matched count (#653)
implement: #630

Change-Id: I6cab6741f2e0dfcdb731ffc099334508e33ca2e1
2019-09-10 14:40:35 +08:00
Linary 94c2d34ce8 Support to verify license (#645)
Change-Id: Ia3fb6b38a032442e1d8bf7cee4d7b4032dc219df
2019-09-09 20:58:41 +08:00
zhoney 1e01920552 support unique index (#636)
implemented: #633

Change-Id: I753a81d0d47b0d7979563d5a9f41d368e06a5b33
2019-08-19 21:27:42 +08:00
zhoney 0e66c64fec support shard-index and vertex + sortkey prefix query (#574)
implemented: #270 and #398

Change-Id: I444b67b7f57a18fd32c29d54d776cf411ccd847a
2019-08-06 11:16:52 +08:00
Linary b01549a579 Not allowed perform sensitive operations via gremlin (#176)
Implement #145

Change-Id: I9a590fe40d3b5a808b569ed0af8fd83214a2941a
2019-07-29 14:21:40 +08:00
zhoney 928db071bd fix existDatabase(), clearBackend() and rollback() for postgresql (#531)
Change-Id: I5061eb95abf0e0ef3a6a83a74ced291647d9308d

fixed: #530

warn if failed to close transaction
Also check if auto-commit when calling execute() for mysql
2019-06-12 10:42:04 +08:00
Wen Zhenghu 033c3871c7 add conf entry jdbc.storage_engine to change storage engine (#555) 2019-06-05 16:08:52 +08:00
Jermy Li f3a3c35e74 support negative number for index (#513)
Change-Id: I7067cfb0a663e89ae4305425edf00e6a2a03587c
implement: #311
2019-06-04 10:41:28 +08:00
wupengfei2 17008be3ff delete useless options of postgresql (#533) 2019-05-30 15:36:18 +08:00
Jermy Li 0061d4f159 suppress error log when postgre database does not exist (#527)
Change-Id: I48aebac67ec98f5c05b96239b497940150542dcc
2019-05-27 19:32:25 +08:00
zhoney 387cef5389 Support PostgreSQL and CockroachDB backends (#484)
implemented: #441
Change-Id: I979affd9f8b2916e6696672fc6e3fda75f9b76da
2019-05-22 15:19:38 +08:00