SQL 服务器的 Apache Drill 架构支持
Apache Drill Schema Support for SQL Server
我想知道 Apache Drill 是否只支持 dbo 架构??还是会支持所有类型的模式?
我 运行 我的系统是 window 8 并且使用最新版本的 Drill(1.5) 和嵌入式模式。
我正在尝试使用相同的存储插件进行搜索。
我的存储插件(用于 SQLServer):
{
"type" : "jdbc",
"driver" : "com.microsoft.sqlserver.jdbc.SQLServerDriver",
"url" : "jdbc:sqlserver://<servername>;databaseName=<databasename>",
"username" : "<username>",
"password" : "<****>",
"enabled" : true
}
此插件有 dbo & core 架构(两者类型相同,无特殊权限). 它适用于核心模式不起作用的 dbo 模式。
DBO 查询:
select * from SqlServer.dbo.Attribute; //Its working.
核心查询:
select * from SqlServer.core.Users //Its not working
我的问题是 Drill 只支持 dbo 模式还是所有类型的模式?
select * from <StoragePluginName>.<databaseName>.<schemaName>.<tableName>;
例如:
seleect * from SqlServer.Test.core.Category;
This query will work for all type of user created schemas. But for dbo(default) schema
Databases name is not required. If you write database name while query through dbo
schema, it will through error.
--> But This not the good solution. Because every time we have check for
schema (default or user created schema). If it has dbo (default
schema) then database name is not required in query. And If it has
core (user created schema) schema then we have to give database name
after Storage Plugin.
我想知道 Apache Drill 是否只支持 dbo 架构??还是会支持所有类型的模式?
我 运行 我的系统是 window 8 并且使用最新版本的 Drill(1.5) 和嵌入式模式。
我正在尝试使用相同的存储插件进行搜索。
我的存储插件(用于 SQLServer):
{
"type" : "jdbc",
"driver" : "com.microsoft.sqlserver.jdbc.SQLServerDriver",
"url" : "jdbc:sqlserver://<servername>;databaseName=<databasename>",
"username" : "<username>",
"password" : "<****>",
"enabled" : true
}
此插件有 dbo & core 架构(两者类型相同,无特殊权限). 它适用于核心模式不起作用的 dbo 模式。
DBO 查询:
select * from SqlServer.dbo.Attribute; //Its working.
核心查询:
select * from SqlServer.core.Users //Its not working
我的问题是 Drill 只支持 dbo 模式还是所有类型的模式?
select * from <StoragePluginName>.<databaseName>.<schemaName>.<tableName>;
例如:
seleect * from SqlServer.Test.core.Category;
This query will work for all type of user created schemas. But for dbo(default) schema Databases name is not required. If you write database name while query through dbo schema, it will through error.
--> But This not the good solution. Because every time we have check for schema (default or user created schema). If it has dbo (default schema) then database name is not required in query. And If it has core (user created schema) schema then we have to give database name after Storage Plugin.