Fix tests

This commit is contained in:
avogar 2022-06-27 13:55:51 +00:00
parent 23022441a6
commit 344ddc6e7d
2 changed files with 2 additions and 2 deletions

View File

@ -74,7 +74,7 @@ void TableFunctionSQLite::parseArguments(const ASTPtr & ast_function, ContextPtr
arg = evaluateConstantExpressionOrIdentifierAsLiteral(arg, context);
database_path = checkAndGetLiteralArgument<String>(args[0], "database_path");
remote_table_name = checkAndGetLiteralArgument<String>(args[0], "table_name");
remote_table_name = checkAndGetLiteralArgument<String>(args[1], "table_name");
sqlite_db = openSQLiteDB(database_path, context);
}

View File

@ -11,4 +11,4 @@ desc s3Cluster('test_cluster_two_shards_localhost', 'http://localhost:11111/test
desc s3Cluster('test_cluster_two_shards_localhost', 'http://localhost:11111/test/{a,b,c}.tsv', 'test', 'testtest', 'TSV', 'c1 UInt64, c2 UInt64, c3 UInt64', 'auto');
SELECT * FROM s3(decodeURLComponent(NULL), [NULL]); --{serverError 170}
SELECT * FROM s3(decodeURLComponent(NULL), [NULL]); --{serverError BAD_ARGUMENTS}