Commit Graph

391 Commits

Author SHA1 Message Date
Itai Shirav
2b8c0b6c38 Do not send readonly=1 when connection is already in readonly mode (this causes a database error) 2017-04-25 08:39:24 +03:00
Itai Shirav
7c26c4da5a Refactor tests with data 2017-04-24 13:14:13 +03:00
Itai Shirav
3487f3b241 initial work on query builder 2017-04-24 13:13:31 +03:00
Itai Shirav
8f825bc537 Finished Release v0.8.2 2017-04-06 15:13:50 +03:00
Itai Shirav
2a2bd2ce29 Releasing v0.8.2 2017-04-06 15:12:39 +03:00
Itai Shirav
dfbf277c87 add a few development eggs for profiling 2017-04-06 15:11:00 +03:00
M1ha
533e6e187a Fixed "TypeError: a bytes-like object is required, not 'str'" on \n insertions 2017-04-06 11:12:59 +05:00
M1ha
76718426bf Fixed bug with StringIO import, incompatible with python 3 2017-04-06 10:54:26 +05:00
M1ha
9bca42fe7e Merge branch 'develop' of https://github.com/Infinidat/infi.clickhouse_orm into develop 2017-04-06 10:03:08 +05:00
Itai Shirav
f9bf8042b6 Finished Release v0.8.1 2017-04-05 18:38:23 +03:00
Itai Shirav
52f11319ad Releasing v0.8.1 2017-04-05 18:37:14 +03:00
Itai Shirav
dacf88adbf Performance improvement: build a _writable_fields list once instead of calculating it every time it's needed 2017-04-05 18:20:01 +03:00
Itai Shirav
c5a9b16eac Performance improvement: skip utils.escape for numeric fields 2017-04-05 18:19:12 +03:00
Itai Shirav
21907966b2 Reduce memory footprint of Database.insert() 2017-04-05 17:42:42 +03:00
Itai Shirav
ec99044fab Greatly improve performance when inserting large strings (credit to M1hacka for identifying the problem) 2017-04-05 17:09:56 +03:00
M1ha
01a84a8d55 Merge branch 'develop' of https://github.com/Infinidat/infi.clickhouse_orm into develop 2017-04-05 17:56:30 +05:00
Itai Shirav
7145984797 Added ReplacingMergeTree to README 2017-04-04 15:29:24 +03:00
Itai Shirav
abc3fdeebe Update changelog 2017-04-04 15:26:15 +03:00
Itai Shirav
4340fc2197 Merge branch 'leenr-develop' into develop 2017-04-04 15:21:22 +03:00
Itai Shirav
04340884be Add tests for engine types 2017-04-04 15:21:08 +03:00
Itai Shirav
526b6d53b9 Merge branch 'develop' of https://github.com/leenr/infi.clickhouse_orm into leenr-develop 2017-04-04 14:49:13 +03:00
Itai Shirav
01f7fbd82c Merge branch 'pilosus-with-totals-fix' into develop 2017-04-04 14:41:48 +03:00
Itai Shirav
e1ef96f05b Add a test for "with totals" 2017-04-04 14:41:23 +03:00
Itai Shirav
b27756d44b Merge branch 'with-totals-fix' of https://github.com/pilosus/infi.clickhouse_orm into pilosus-with-totals-fix 2017-04-04 12:47:18 +03:00
Itai Shirav
4ee174822a Merge branch 'nikepan-nikepan-develop' into develop 2017-04-04 12:41:43 +03:00
Itai Shirav
015a4512e7 Fix datetime tests 2017-04-04 12:41:18 +03:00
nikepan
b2a5482a65 blank datetime fix beauty 2017-03-27 17:07:10 +03:00
nikepan
e5222ffcb0 blank datetime fix improve 2017-03-27 17:03:13 +03:00
nikepan
9baa863d1f blank datetime better fix 2017-03-27 16:51:34 +03:00
nikepan
1460d4c85e blank datetime fix 2017-03-27 16:30:38 +03:00
Vitaly Samigullin
84681ec979 GROUP BY WITH TOTALS workaround to skip blank line separator making parsing 2017-03-12 16:49:54 +03:00
leenr
b4a1d14a12 Make ver_col in ReplacingMergeTree optional 2017-03-04 15:43:38 +03:00
leenr
1b8c4dbec1 Add support for ReplacingMergeTree (https://clickhouse.yandex/reference_en.html#ReplacingMergeTree) 2017-03-04 15:29:19 +03:00
Itai Shirav
9a81372fff Finished Release v0.8.0 2017-02-22 10:52:40 +02:00
Itai Shirav
6c3a82a2b4 Releasing v0.8.0 2017-02-22 10:52:03 +02:00
M1ha
a4004043fc Merge branch 'develop' of https://github.com/Infinidat/infi.clickhouse_orm into develop
# Conflicts:
#	src/infi/clickhouse_orm/models.py
#	tests/test_database.py
#	tests/test_system_models.py
2017-02-20 17:29:45 +05:00
Itai Shirav
f70d0697a7 Updated changelog 2017-02-19 09:30:19 +02:00
Itai Shirav
9afb6ff735 Merge branch 'emakarov-develop' into develop 2017-02-19 09:12:18 +02:00
Itai Shirav
1d573ded96 Merge branch 'develop' of https://github.com/emakarov/infi.clickhouse_orm into emakarov-develop
# Conflicts:
#	src/infi/clickhouse_orm/models.py
#	tests/test_database.py
2017-02-19 09:12:00 +02:00
Itai Shirav
58e322cc52 fix test 2017-02-19 09:04:32 +02:00
M1ha
6f975a801c 1) Added get_database method to Model
2) Added some assertions in tests for adding _database attribute in selects and inserts
3) database.insert() method sets _database
2017-02-19 09:04:32 +02:00
M1ha
adff766246 Edited docs (SystemPart) 2017-02-19 09:04:32 +02:00
M1ha
f3e75cfae3 1) Removed database params for working with SystemPart operations
2) Added _database attribute to each model, got through select
2017-02-19 09:04:32 +02:00
M1ha
64f6288fdb Moved code example to another section 2017-02-19 09:04:32 +02:00
M1ha
14f2ab78b5 Fixed:
1) Added partition working to readme
2) replaced insertable_only parameter with include_readonly
3) Added empty string alias and materialized field control
2017-02-19 09:04:32 +02:00
M1ha
27217102da Fixed bugs, connected to merge 2017-02-19 09:04:05 +02:00
M1ha
dddca2d3b5 Corrected links and code 2017-02-19 09:04:05 +02:00
M1ha
92adeb697f Corrected tables in docs 2017-02-19 09:02:56 +02:00
M1ha
948ab53e5e Corrected docs 2017-02-19 09:02:56 +02:00
M1ha
5f2195f87f 1) Replaced is_insertable() field mehtod with readonly property (unification with model and tables)
2) Method SystemPart.all() was replaced with get()
3) Added conditions parameter to SystemPart.get() and SystemPart.get_active() methods.
2017-02-19 09:02:56 +02:00