mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
Correct some integration tests
This commit is contained in:
parent
585a9edd32
commit
e30ae215cf
@ -1,5 +1,5 @@
|
||||
<clickhouse>
|
||||
<timezone>Europe/Moscow</timezone>
|
||||
<timezone>Asia/Istanbul</timezone>
|
||||
<listen_host>0.0.0.0</listen_host>
|
||||
<custom_settings_prefixes>custom_</custom_settings_prefixes>
|
||||
<path>/var/lib/clickhouse/</path>
|
||||
|
@ -129,20 +129,6 @@
|
||||
<!-- Default database. -->
|
||||
<default_database>default</default_database>
|
||||
|
||||
<!-- Server time zone could be set here.
|
||||
|
||||
Time zone is used when converting between String and DateTime types,
|
||||
when printing DateTime in text formats and parsing DateTime from text,
|
||||
it is used in date and time related functions, if specific time zone was not passed as an argument.
|
||||
|
||||
Time zone is specified as identifier from IANA time zone database, like UTC or Africa/Abidjan.
|
||||
If not specified, system time zone at server startup is used.
|
||||
|
||||
Please note, that server could display time zone alias instead of specified name.
|
||||
Example: W-SU is an alias for Europe/Moscow and Zulu is an alias for UTC.
|
||||
-->
|
||||
<!-- <timezone>Europe/Moscow</timezone> -->
|
||||
|
||||
<!-- You can specify umask here (see "man umask"). Server will apply it on startup.
|
||||
Number is always parsed as octal. Default umask is 027 (other users cannot read logs, data files, etc; group can only read).
|
||||
-->
|
||||
|
@ -490,20 +490,6 @@
|
||||
<!-- Default database. -->
|
||||
<default_database>default</default_database>
|
||||
|
||||
<!-- Server time zone could be set here.
|
||||
|
||||
Time zone is used when converting between String and DateTime types,
|
||||
when printing DateTime in text formats and parsing DateTime from text,
|
||||
it is used in date and time related functions, if specific time zone was not passed as an argument.
|
||||
|
||||
Time zone is specified as identifier from IANA time zone database, like UTC or Africa/Abidjan.
|
||||
If not specified, system time zone at server startup is used.
|
||||
|
||||
Please note, that server could display time zone alias instead of specified name.
|
||||
Example: W-SU is an alias for Europe/Moscow and Zulu is an alias for UTC.
|
||||
-->
|
||||
<!-- <timezone>Europe/Moscow</timezone> -->
|
||||
|
||||
<!-- You can specify umask here (see "man umask"). Server will apply it on startup.
|
||||
Number is always parsed as octal. Default umask is 027 (other users cannot read logs, data files, etc; group can only read).
|
||||
-->
|
||||
|
@ -1,4 +1,4 @@
|
||||
timezone: Europe/Moscow
|
||||
timezone: Asia/Istanbul
|
||||
listen_host: 0.0.0.0
|
||||
custom_settings_prefixes: custom_
|
||||
path: /var/lib/clickhouse/
|
||||
|
@ -1,4 +1,4 @@
|
||||
timezone: Europe/Moscow
|
||||
timezone: Asia/Istanbul
|
||||
listen_host: 0.0.0.0
|
||||
custom_settings_prefixes: custom_
|
||||
path: /var/lib/clickhouse/
|
||||
|
@ -1,4 +1,4 @@
|
||||
timezone: Europe/Moscow
|
||||
timezone: Asia/Istanbul
|
||||
listen_host: 0.0.0.0
|
||||
custom_settings_prefixes: custom_
|
||||
path: /var/lib/clickhouse/
|
||||
|
@ -122,20 +122,6 @@
|
||||
<!-- Default database. -->
|
||||
<default_database>default</default_database>
|
||||
|
||||
<!-- Server time zone could be set here.
|
||||
|
||||
Time zone is used when converting between String and DateTime types,
|
||||
when printing DateTime in text formats and parsing DateTime from text,
|
||||
it is used in date and time related functions, if specific time zone was not passed as an argument.
|
||||
|
||||
Time zone is specified as identifier from IANA time zone database, like UTC or Africa/Abidjan.
|
||||
If not specified, system time zone at server startup is used.
|
||||
|
||||
Please note, that server could display time zone alias instead of specified name.
|
||||
Example: W-SU is an alias for Europe/Moscow and Zulu is an alias for UTC.
|
||||
-->
|
||||
<!-- <timezone>Europe/Moscow</timezone> -->
|
||||
|
||||
<!-- You can specify umask here (see "man umask"). Server will apply it on startup.
|
||||
Number is always parsed as octal. Default umask is 027 (other users cannot read logs, data files, etc; group can only read).
|
||||
-->
|
||||
|
@ -480,9 +480,9 @@ def test_odbc_postgres_conversions(started_cluster):
|
||||
|
||||
node1.query(
|
||||
"""INSERT INTO test_types
|
||||
SELECT toDateTime64('2019-01-01 00:00:00', 3, 'Europe/Moscow'), toDecimal32(1.1, 1)""")
|
||||
SELECT toDateTime64('2019-01-01 00:00:00', 3, 'Asia/Istanbul'), toDecimal32(1.1, 1)""")
|
||||
|
||||
expected = node1.query("SELECT toDateTime64('2019-01-01 00:00:00', 3, 'Europe/Moscow'), toDecimal32(1.1, 1)")
|
||||
expected = node1.query("SELECT toDateTime64('2019-01-01 00:00:00', 3, 'Asia/Istanbul'), toDecimal32(1.1, 1)")
|
||||
result = node1.query("SELECT * FROM test_types")
|
||||
logging.debug(result)
|
||||
cursor.execute("DROP TABLE IF EXISTS clickhouse.test_types")
|
||||
|
Loading…
Reference in New Issue
Block a user