Correct some integration tests

This commit is contained in:
Alexey Milovidov 2022-03-11 22:51:24 +01:00
parent 585a9edd32
commit e30ae215cf
8 changed files with 6 additions and 48 deletions

View File

@ -1,5 +1,5 @@
<clickhouse> <clickhouse>
<timezone>Europe/Moscow</timezone> <timezone>Asia/Istanbul</timezone>
<listen_host>0.0.0.0</listen_host> <listen_host>0.0.0.0</listen_host>
<custom_settings_prefixes>custom_</custom_settings_prefixes> <custom_settings_prefixes>custom_</custom_settings_prefixes>
<path>/var/lib/clickhouse/</path> <path>/var/lib/clickhouse/</path>

View File

@ -129,20 +129,6 @@
<!-- Default database. --> <!-- Default database. -->
<default_database>default</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. <!-- 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). Number is always parsed as octal. Default umask is 027 (other users cannot read logs, data files, etc; group can only read).
--> -->

View File

@ -490,20 +490,6 @@
<!-- Default database. --> <!-- Default database. -->
<default_database>default</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. <!-- 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). Number is always parsed as octal. Default umask is 027 (other users cannot read logs, data files, etc; group can only read).
--> -->

View File

@ -1,4 +1,4 @@
timezone: Europe/Moscow timezone: Asia/Istanbul
listen_host: 0.0.0.0 listen_host: 0.0.0.0
custom_settings_prefixes: custom_ custom_settings_prefixes: custom_
path: /var/lib/clickhouse/ path: /var/lib/clickhouse/

View File

@ -1,4 +1,4 @@
timezone: Europe/Moscow timezone: Asia/Istanbul
listen_host: 0.0.0.0 listen_host: 0.0.0.0
custom_settings_prefixes: custom_ custom_settings_prefixes: custom_
path: /var/lib/clickhouse/ path: /var/lib/clickhouse/

View File

@ -1,4 +1,4 @@
timezone: Europe/Moscow timezone: Asia/Istanbul
listen_host: 0.0.0.0 listen_host: 0.0.0.0
custom_settings_prefixes: custom_ custom_settings_prefixes: custom_
path: /var/lib/clickhouse/ path: /var/lib/clickhouse/

View File

@ -122,20 +122,6 @@
<!-- Default database. --> <!-- Default database. -->
<default_database>default</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. <!-- 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). Number is always parsed as octal. Default umask is 027 (other users cannot read logs, data files, etc; group can only read).
--> -->

View File

@ -480,9 +480,9 @@ def test_odbc_postgres_conversions(started_cluster):
node1.query( node1.query(
"""INSERT INTO test_types """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") result = node1.query("SELECT * FROM test_types")
logging.debug(result) logging.debug(result)
cursor.execute("DROP TABLE IF EXISTS clickhouse.test_types") cursor.execute("DROP TABLE IF EXISTS clickhouse.test_types")