Fix style

This commit is contained in:
Kruglov Pavel 2022-04-20 16:34:05 +02:00 committed by GitHub
parent 813e228fcc
commit 6ddebf7d38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -547,23 +547,23 @@ def test_schema_inference_with_globs(started_cluster):
filename = "data{1,3}.jsoncompacteachrow"
result = node1.query_and_get_error(
f"desc hdfs('hdfs://hdfs1:9000/{filename}')"
)
result = node1.query_and_get_error(f"desc hdfs('hdfs://hdfs1:9000/{filename}')")
assert "All attempts to extract table structure from files failed" in result
node1.query(
f"insert into table function hdfs('hdfs://hdfs1:9000/data0.jsoncompacteachrow', 'TSV', 'x String') select '[123;]'"
)
url_filename = "data{0,1,2,3}.jsoncompacteachrow"
result = node1.query_and_get_error(
f"desc hdfs('hdfs://hdfs1:9000/data*.jsoncompacteachrow')"
)
assert "Cannot extract table structure from JSONCompactEachRow format file" in result
assert (
"Cannot extract table structure from JSONCompactEachRow format file" in result
)
def test_insert_select_schema_inference(started_cluster):