mirror of
https://github.com/hanzoai/datastore.git
synced 2026-09-26 13:55:07 +00:00
Complete the filename-level debrand the 26.6 merge surfaced: 238 files (test .sql/.reference pairs, ci/jobs + workflows, utils, docs, package specs) renamed clickhouse->datastore (all case variants incl clickHouse), with references updated. Build-critical product files were already done. Excludes contrib (third-party).
15 lines
696 B
Bash
Executable File
15 lines
696 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
WORK_TREE="$1"
|
|
(
|
|
cd $WORK_TREE || exit 129
|
|
|
|
$CH_PATH client --user admin -q "create table test (ts DateTime64(6, 'UTC'), d Date) engine = PostgreSQL('localhost:15432', 'postgres', 'test', 'postgres', 'password');
|
|
select ts from test where ts > '2025-01-01 00:00:00'::DateTime64" || exit 1
|
|
# Run some test
|
|
# ./tests/datastore-test --no-random-settings --no-random-merge-tree-settings 01413_rows_events.sql
|
|
# Or run custom script
|
|
# clickhouse client -q "drop database if exists x; create database x; create table x.ttl (d Date, a Int) engine = MergeTree order by a partition by toDayOfMonth(d); insert into x.ttl values (toDateTime('2000-10-10 00:00:00'), 1)"
|
|
)
|