-
Notifications
You must be signed in to change notification settings - Fork 71
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
Add cloud tests #339
Add cloud tests #339
Conversation
spark-3.5/clickhouse-spark/src/main/scala/xenon/clickhouse/ClickHouseCatalog.scala
Outdated
Show resolved
Hide resolved
clickhouse-core/src/main/scala/xenon/clickhouse/parse/AstVisitor.scala
Outdated
Show resolved
Hide resolved
...e-spark-it/src/test/scala/org/apache/spark/sql/clickhouse/single/ClickHouseSingleSuite.scala
Outdated
Show resolved
Hide resolved
val CLICKHOUSE_VERSION: String = Utils.load("CLICKHOUSE_VERSION", "23.8") | ||
val isCloud: Boolean = if (CLICKHOUSE_VERSION.equalsIgnoreCase("cloud")) true else false | ||
val isOnPrem: Boolean = !isCloud | ||
val CLICKHOUSE_IMAGE: String = if (isCloud) "clickhouse/clickhouse-server:23.8" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is too hacky.
I would suggest adding a new ClickHouseCouldMixIn
alongside the existing ClickHouseSingleMixIn
and ClickHouseClusterMixIn
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this comment was ignored. the current change mixes things up. Let me clarify more details
ClickHouse*MixIn
tasks responsibility to provide a ClickHouse instance(s) to run integration tests:
ClickHouseSingleMixIn
provides a single ClickHouse instance by using docker to launch a single containerClickHouseClusterMixIn
provides a ClickHouse cluster by using docker compose to launcher a set of containersClickHouseCouldMixIn
should just expose ClickHouse Cloud instance's URL and credential.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this will introduce some refactoring, i will take a look if i find time this weekend
...e-spark-it/src/test/scala/org/apache/spark/sql/clickhouse/single/ClickHouseSingleSuite.scala
Outdated
Show resolved
Hide resolved
clickhouse-core/src/testFixtures/scala/xenon/clickhouse/base/ClickHouseClusterMixIn.scala
Outdated
Show resolved
Hide resolved
spark-3.5/clickhouse-spark-it/src/test/scala/org/apache/spark/sql/clickhouse/SparkTest.scala
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I think this PR is not ready to go
clickhouse-core/src/main/scala/xenon/clickhouse/parse/AstVisitor.scala
Outdated
Show resolved
Hide resolved
spark-3.5/clickhouse-spark/src/main/scala/xenon/clickhouse/ClickHouseCatalog.scala
Outdated
Show resolved
Hide resolved
spark-3.5/clickhouse-spark/src/main/scala/xenon/clickhouse/ClickHouseCatalog.scala
Outdated
Show resolved
Hide resolved
val CLICKHOUSE_VERSION: String = Utils.load("CLICKHOUSE_VERSION", "23.8") | ||
val isCloud: Boolean = if (CLICKHOUSE_VERSION.equalsIgnoreCase("cloud")) true else false | ||
val isOnPrem: Boolean = !isCloud | ||
val CLICKHOUSE_IMAGE: String = if (isCloud) "clickhouse/clickhouse-server:23.8" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this comment was ignored. the current change mixes things up. Let me clarify more details
ClickHouse*MixIn
tasks responsibility to provide a ClickHouse instance(s) to run integration tests:
ClickHouseSingleMixIn
provides a single ClickHouse instance by using docker to launch a single containerClickHouseClusterMixIn
provides a ClickHouse cluster by using docker compose to launcher a set of containersClickHouseCouldMixIn
should just expose ClickHouse Cloud instance's URL and credential.
Summary
Add cloud tests
Checklist
Delete items not relevant to your PR: