This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'uri' | |
require 'json' | |
require 'faraday' | |
require 'presto-client' | |
require 'date' | |
def get(url, path) | |
conn = Faraday.new(url: url) {|faraday| | |
faraday.adapter Faraday.default_adapter | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
America/Los_Angeles,Pacific Standard Time,PST,Pacific Daylight Time,PDT,Pacific Time,PT | |
America/Denver,Mountain Standard Time,MST,Mountain Daylight Time,MDT,Mountain Time,MT | |
America/Phoenix,Mountain Standard Time,MST,Mountain Daylight Time,MDT,Mountain Time,MT | |
America/Chicago,Central Standard Time,CST,Central Daylight Time,CDT,Central Time,CT | |
America/New_York,Eastern Standard Time,EST,Eastern Daylight Time,EDT,Eastern Time,ET | |
America/Indianapolis,Eastern Standard Time,EST,Eastern Daylight Time,EDT,Eastern Time,ET | |
Pacific/Honolulu,Hawaii Standard Time,HST,Hawaii Daylight Time,HDT,Hawaii Time,HST | |
America/Anchorage,Alaska Standard Time,AKST,Alaska Daylight Time,AKDT,Alaska Time,AKT | |
America/Halifax,Atlantic Standard Time,AST,Atlantic Daylight Time,ADT,Atlantic Time,AT | |
America/Sitka,Alaska Standard Time,AKST,Alaska Daylight Time,AKDT,Alaska Time,AKT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'uri' | |
require 'json' | |
require 'faraday' | |
require 'presto-client' | |
require 'date' | |
def get(url, path) | |
conn = Faraday.new(url: url) {|faraday| | |
faraday.adapter Faraday.default_adapter | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import sys | |
import requests | |
import urlparse | |
apikey=sys.argv[1] | |
host=sys.argv[2] | |
database=sys.argv[3] | |
table=sys.argv[4] | |
headers={ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import sys | |
import requests | |
import urlparse | |
apikey=sys.argv[1] | |
host=sys.argv[2] | |
database=sys.argv[3] | |
table=sys.argv[4] | |
headers={ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import sys | |
import requests | |
apikey=sys.argv[1] | |
host=sys.argv[2] | |
file=sys.argv[3] | |
headers={ | |
"Authorization": "TD1 %s" % apikey, | |
"Content-Type": "application/json" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
decimals = [ | |
'cr_return_amount','cr_return_tax','cr_return_amt_inc_tax','cr_fee','cr_return_ship_cost','cr_refunded_cash','cr_reversed_charge','cr_store_credit','cr_net_loss', | |
'ws_wholesale_cost','ws_list_price','ws_sales_price','ws_ext_discount_amt','ws_ext_sales_price','ws_ext_wholesale_cost','ws_ext_list_price','ws_ext_tax','ws_coupon_amt','ws_ext_ship_cost','ws_net_paid','ws_net_paid_inc_tax','ws_net_paid_inc_ship','ws_net_paid_inc_ship_tax','ws_net_profit', | |
'wr_return_amt','wr_return_tax','wr_return_amt_inc_tax','wr_fee','wr_return_ship_cost','wr_refunded_cash','wr_reversed_charge','wr_account_credit','wr_net_loss', | |
'sr_return_amt','sr_return_tax','sr_return_amt_inc_tax','sr_fee','sr_return_ship_cost','sr_refunded_cash','sr_reversed_charge','sr_store_credit','sr_net_loss', | |
'web_gmt_offset','web_tax_percentage', | |
'w_gmt_offset', | |
's_gmt_offset','s_tax_precentage', |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
k1 | v1 | rnk1 | k2 | v2 | rnk2 | |
--------+---------+--------+--------+---------+-------- | |
44733 | -684.41 | 145641 | 44733 | -684.41 | 145641 | |
129771 | -684.43 | 145642 | 129771 | -684.43 | 145642 | |
20488 | -684.9 | 145643 | 20488 | -684.9 | 145643 | |
24992 | -684.97 | 145644 | 24992 | -684.97 | 145644 | |
146153 | -685.0 | 145645 | 146153 | -685.0 | 145645 | |
79004 | -685.09 | 145646 | 79004 | -685.09 | 145646 | |
63623 | -685.09 | 145646 | 63623 | -685.09 | 145646 | |
147407 | -685.1 | 145648 | 147407 | -685.1 | 145648 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/presto-main/src/main/java/com/facebook/presto/connector/system/CatalogSystemTable.java b/presto-main/src/main/java/com/facebook/presto/connector/system/CatalogSystemTable.java | |
index 3c0e699..81d3544 100644 | |
--- a/presto-main/src/main/java/com/facebook/presto/connector/system/CatalogSystemTable.java | |
+++ b/presto-main/src/main/java/com/facebook/presto/connector/system/CatalogSystemTable.java | |
@@ -27,6 +27,7 @@ import com.facebook.presto.spi.predicate.TupleDomain; | |
import javax.inject.Inject; | |
import java.util.Map; | |
+import java.util.Optional; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.concurrent.ExecutorService; | |
import java.util.concurrent.Executors; | |
import java.util.concurrent.TimeUnit; | |
import java.util.concurrent.atomic.AtomicLong; | |
import java.util.concurrent.locks.LockSupport; | |
public class Main | |
{ | |
public static class ResourcePoolNew | |
extends ResourcePool<Object> { |
NewerOlder