Comments (7)
Let's close this - I got it working on my latest pip install!
from chdb.
Hello @alanpaulkwan I can perform remote queries to clickhouse servers just fine using the latest release:
# python3 -m chdb "select * from remote('XXXXXXXX:9000','system.disks','default','XXXXXXXXXXX')"
"backups","/backups/",3505403396096,3910140764160,3505403396096,0,"local",0,0,0,0,0,""
"default","/var/lib/clickhouse/",3505403396096,3910140764160,3505403396096,0,"local",0,0,0,0,0,""
"s3","/var/lib/clickhouse/disks/s3_disk/",18446744073709551615,18446744073709551615,18446744073709551615,0,"s3",0,0,0,1,0,""
Same goes for the libchdb bindings, for example in go:
# ./chdbgo -query "select * from remote('XXXXXXXX:9000','system.disks','default','XXXXXXXXXXX')"
"backups","/backups/",3505439924224,3910140764160,3505439924224,0,"local",0,0,0,0,0,""
"default","/var/lib/clickhouse/",3505439924224,3910140764160,3505439924224,0,"local",0,0,0,0,0,""
"s3","/var/lib/clickhouse/disks/s3_disk/",18446744073709551615,18446744073709551615,18446744073709551615,0,"s3",0,0,0,1,0,""
It even works in the public demo 😄
Could you confirm your running environment and installed version?
from chdb.
I was using the demo version on Github. My fault, can try in Python later.
from chdb.
I was using the demo version on Github. My fault, can try in Python later.
Thanks @alanpaulkwan which demo version are you referring to? This should work from everywhere, including the public demo (which I used above, too) as long as credentials are fine. Perhaps this was a secure connection? if so remoteSecure
should be used instead of remote
from chdb.
ch.fly.dev
I entered your query which obviously shouldn't run, since I don't know the IP or real pw
from chdb.
Here's a working query you can try using the public clickhouse play server:
select count(*) from remoteSecure('play.clickhouse.com:9440','default.covid','play','play')
from chdb.
Thanks @alanpaulkwan I understand the report now: the web demo does NOT return full error messages (the library does) and perhaps this was the confusing bit all along. Glad you got this working, and welcome to our community!
from chdb.
Related Issues (20)
- Proposal: build all macOS wheels on macOS 12
- Webassembly support? HOT 2
- Insert stuck in VSCode Jupyter Notebook
- Any example to use chdb directly as lib in c/c++ code HOT 4
- DBAPI doesn't support CREATE TABLE or other none-returning queries HOT 1
- DBAPI implementation loses all Clickhouse state on every query HOT 1
- Unable to build on arm64 mac HOT 3
- Insert with parameters HOT 4
- vector analyser of databased blobs in a reactive event driven manner HOT 1
- Add formatQuery from Clickhouse “Other” Functions HOT 1
- Questions regarding zero-copy HOT 4
- Windows support? HOT 1
- Please make chdb available on conda-forge HOT 2
- Unknown output format MsgPack. (UNKNOWN_FORMAT) HOT 1
- CHDB is significantly slower on Arrow tables (in-memory) than with CSV / Parquet HOT 1
- Reimplement the session mode to support Memory engine
- SET clause not work through chDB session
- add sql as an alias for query
- Deno support
- Does chdb supports orm? If supports, how to use? HOT 5
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 chdb.