Skip to content

Commit

Permalink
Merge pull request #4 from vantage-sh/nel/json-default
Browse files Browse the repository at this point in the history
chore: Enable beta JSON support after installation.
  • Loading branch information
brookemckim authored Jan 21, 2025
2 parents b77e3c0 + 32926f5 commit 173f2c5
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions Formula/[email protected]
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
class ClickhouseAT248 < Formula
desc "Free analytics DBMS for big data with SQL interface"
homepage "https://clickhouse.com"
url "https://github.com/ClickHouse/ClickHouse/releases/download/v24.8.7.41-lts/clickhouse-macos-aarch64",
url "https://github.com/ClickHouse/ClickHouse/releases/download/v24.8.12.28-lts/clickhouse-macos-aarch64",
verified: "github.com/ClickHouse/ClickHouse/"
sha256 "9585520c59383211056ac0015adb6a82bac994fbfc8f2b4f58ddfac3dc1172b1"
sha256 "b548833cd779c81771a98469f0b76de29364687a0c13aad8822e9ca4101ba06a"
license "Apache-2.0"

livecheck do
Expand Down Expand Up @@ -51,6 +51,17 @@ def post_install
chmod "ug+x", file if File.directory?(file)
end

# Enable beta features.
(etc/"clickhouse-server/users.d/default.xml").write <<~XML
<clickhouse>
<profiles>
<default>
<allow_experimental_json_type>1</allow_experimental_json_type>
</default>
</profiles>
</clickhouse>
XML

# Make sure the data directories are initialized.
system opt_bin/"clickhouse", "start", "--prefix", HOMEBREW_PREFIX, "--binary-path", opt_bin, "--user", ""
system opt_bin/"clickhouse", "stop", "--prefix", HOMEBREW_PREFIX
Expand Down

0 comments on commit 173f2c5

Please sign in to comment.