Andrew Kane 7 лет назад
Родитель
Сommit
35d7be3fe6
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      README.md
  2. 1 1
      lib/blazer/adapters/presto_adapter.rb

+ 1 - 1
README.md

@@ -417,7 +417,7 @@ Add [presto-client](https://github.com/treasure-data/presto-client-ruby) to your
 ```yml
 data_sources:
   my_source:
-    url: presto://user@hostname:8080/catalog?schema=schema
+    url: presto://user@hostname:8080/catalog
 ```
 
 ## Learn SQL

+ 1 - 1
lib/blazer/adapters/presto_adapter.rb

@@ -34,7 +34,7 @@ module Blazer
           Presto::Client.new(
             server: "#{uri.host}:#{uri.port}",
             catalog: uri.path.to_s.sub(/\A\//, ""),
-            schema: query["schema"],
+            schema: query["schema"] || "public",
             user: uri.user,
             http_debug: false
           )