Comments (2)
Hm, why do you need select bitmap
? Is it a part of an insert select
?
JDBC supports bitmaps https://github.com/search?q=repo%3AClickHouse%2Fclickhouse-java%20ClickHouseBitmap&type=code
You can use input function or external data (jdbc supports external data) https://clickhouse.com/docs/en/engines/table-engines/special/external-data
And such function already exists unhex
select hex(bitmapBuild([1,2,3]));
┌─hex(bitmapBuild([1, 2, 3]))─┐
│ 0003010203 │
└─────────────────────────────┘
select bitmapToArray(cast(unhex('0003010203'), 'AggregateFunction(groupBitmap, UInt8)'));
┌─bitmapToArray(CAST(unhex('0003010203'), 'AggregateFunction(groupBitmap, UInt8)'))─┐
│ [1,2,3] │
└───────────────────────────────────────────────────────────────────────────────────┘
from clickhouse.
I require the 'select bitmap' functionality because the bitmap value is evaluated by my Java program. Subsequently, I utilize it to filter data from the 'clickhouse' table, rather than using an insert select
scenario.
In conclusion,thank you for providing solution,it is very useful.
from clickhouse.
Related Issues (20)
- CREATE and ALTER ROW POLICY syntax in docs is incomplete HOT 1
- Error : Not-ready Set is passed error (Version 24.6)
- Performance degradation while upgrading from 24.3.5.46-lts to 24.8.4.13-lts HOT 10
- Invalid number of rows in Chunk logical error
- Syntax error handling for `IN` clause in CREATE ROLE, USER, QUOTA ... statemnets HOT 1
- JSON with Variant heap-use-after-free
- view+distribute is very slow slow slow HOT 3
- Images functions support HOT 3
- 中文TTL文档中示例SQL代码错误 HOT 1
- Bad mutations with virtual columns HOT 2
- Unexpectedly stuck queries after upgrade from 24.1.2.5 to 24.8.4.13
- Are Memory tables dropped right away without using SYNC?
- Sparse encoding for non-default default values
- Automatic `LowCardinality` representation of columns HOT 3
- Fail to start server when use s3 express as disk
- Formatted ALTER queries result in a syntax error
- `TRIM` does not support empty trim characters, pt. II
- Virtual column `_granule` for MergeTree HOT 1
- How can a single-node user configured with user.xml be upgraded to a cluster user
- S3Queue & schema evolution problems
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clickhouse.