Skip to content

Fixing clickhouse-ontime datasource. #774

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 15, 2025
Merged

Fixing clickhouse-ontime datasource. #774

merged 1 commit into from
Apr 15, 2025

Conversation

antip00
Copy link
Collaborator

@antip00 antip00 commented Apr 15, 2025

Copy link

Pull Request Test Coverage Report for Build 14472504053

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 467 unchanged lines in 7 files lost coverage.
  • Overall coverage decreased (-15.6%) to 55.824%

Files with Coverage Reduction New Missed Lines %
pkg/main.go 5 0.0%
pkg/eval/eval_query.go 27 78.0%
pkg/query.go 54 0.0%
pkg/datasource.go 78 0.0%
pkg/client.go 83 0.0%
pkg/parser.go 87 0.0%
pkg/response.go 133 0.0%
Totals Coverage Status
Change from base Build 14453511318: -15.6%
Covered Lines: 1433
Relevant Lines: 2567

💛 - Coveralls

@@ -4,9 +4,10 @@ services:
environment:
- CLICKHOUSE_ALWAYS_RUN_INITDB_SCRIPTS=true
volumes:
- ./docker/clickhouse/load_ontime.sh:/docker-entrypoint-initdb.d/load_ontime.sh
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hm when .sh stop works in initdb.d?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

default user restricted by 127.0.0.1 couple of months ago

let's add
environment CLICKHOUSE_SKIP_USER_SETUP=1 to docker-compose instead of change fast downloading ontime

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

downloading data parts instead of inserting could be faster, but i'm not sure

- /var/lib/clickhouse/
- /var/log/clickhouse-server/
- ./docker/clickhouse/init_schema_ontime.sql:/docker-entrypoint-initdb.d/init_schema.sql
- ./docker/clickhouse/users.xml:/etc/clickhouse-server/users.d/users.xml
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe adding users.xml is better solution

@Slach
Copy link
Collaborator

Slach commented Apr 15, 2025

ok. let's merge it

@Slach Slach merged commit ac4cb4c into master Apr 15, 2025
3 checks passed
@Slach Slach added this to the 3.4.0 milestone Apr 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants