Skip to content

Commit

Permalink
Merge branch 'bigquery-udf-resources'
Browse files Browse the repository at this point in the history
  • Loading branch information
necnec committed Nov 29, 2016
2 parents ddb4fd1 + d69ed7f commit 834a2ff
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions pandas/io/tests/test_gbq.py
Original file line number Diff line number Diff line change
Expand Up @@ -707,15 +707,15 @@ def test_invalid_option_for_sql_dialect(self):
private_key=_get_private_key_path())

# Test that a correct option for dialect succeeds
# to make sure ValueError was due to invalid dialect
# to make sure ValueError was due to invalid dialect
gbq.read_gbq(sql_statement, project_id=_get_project_id(),
dialect='standard', private_key=_get_private_key_path())

def test_query_with_parameters(self):
sql_statement = "SELECT @param1 + @param2 as VALID_RESULT"
sql_statement = "SELECT @param1 + @param2 as VALID_RESULT"
query_config = {
"useLegacySql":False,
"parameterMode":"named",
"useLegacySql": False,
"parameterMode": "named",
"queryParameters": [
{
"name": "param1",
Expand Down Expand Up @@ -744,14 +744,14 @@ def test_query_with_parameters(self):

# Test that a correct query with query config
df = gbq.read_gbq(sql_statement, project_id=_get_project_id(),
private_key=_get_private_key_path(),
query_config=query_config)
private_key=_get_private_key_path(),
query_config=query_config)
tm.assert_frame_equal(df, DataFrame({'VALID_RESULT': [3]}))

def test_query_no_cache(self):
query = 'SELECT "PI" as VALID_STRING'
query_config = {
"useQueryCache":False,
"useQueryCache": False,
}
df = gbq.read_gbq(query, project_id=_get_project_id(),
private_key=_get_private_key_path(),
Expand Down

0 comments on commit 834a2ff

Please sign in to comment.