И
Size: a a a
И
АФ
A
SQL Error [62]: ClickHouse exception, code: 62, host: ch.iconjob.co, port: 8123; Code: 62, e.displayText() = DB::Exception: Syntax error: failed at position 88 (line 3, col 30): FORMAT TabSeparatedWithNamesAndTypes;. Expected SETTINGS (version 20.6.3.28 (official build))
S
CREATE MATERIALIZED VIEW wproxy.traffic_uids_hourly
(
`rx` AggregateFunction(sum, UInt64),
`tx` AggregateFunction(sum, UInt64),
`uids` AggregateFunction(uniq, String),
`d` DateTime('Europe/Moscow'),
`clientId` String
)
ENGINE = AggregatingMergeTree()
ORDER BY (d, clientId)
SETTINGS index_granularity = 8192 AS
SELECT
sumState(rx) AS rx,
sumState(tx) AS tx,
uniqState(uuid) AS uids,
toStartOfHour(tm) AS d,
clientId
FROM wproxy.stats
GROUP BY
d,
clientId
S
SQL Error [62]: ClickHouse exception, code: 62, host: ch.iconjob.co, port: 8123; Code: 62, e.displayText() = DB::Exception: Syntax error: failed at position 88 (line 3, col 30): FORMAT TabSeparatedWithNamesAndTypes;. Expected SETTINGS (version 20.6.3.28 (official build))
A
select distinct id
from tickets
FORMAT TabSeparatedWithNames
S
select distinct id
from tickets
FORMAT TabSeparatedWithNames
A
PL
A
S
A
A
S
A
A
S
A
str_get_last_data = f"""
select distinct id
from eddy_tickets
FORMAT CSVWithNames
"""
ticket_ids = pd.read_csv(StringIO(db.raw(str_get_last_data)), sep=',')
S
str_get_last_data = f"""
select distinct id
from eddy_tickets
FORMAT CSVWithNames
"""
ticket_ids = pd.read_csv(StringIO(db.raw(str_get_last_data)), sep=',')
S
str_get_last_data = f"""
select distinct id
from eddy_tickets
FORMAT CSVWithNames
"""
ticket_ids = pd.read_csv(StringIO(db.raw(str_get_last_data)), sep=',')