We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a41ed7 commit 2e84599Copy full SHA for 2e84599
test/test_sqlalchemy_bigquery.py
@@ -162,10 +162,14 @@ def query():
162
def query(table):
163
col1 = literal_column("TIMESTAMP_TRUNC(timestamp, DAY)").label("timestamp_label")
164
col2 = func.sum(table.c.integer)
165
+ # Test rendering of nested labels. Full expression should render in SELECT, but
166
+ # ORDER/GROUP BY should use label only.
167
+ col3 = func.sum(func.sum(table.c.integer.label("inner")).label("outer")).over().label('outer')
168
query = (
169
select([
170
col1,
171
col2,
172
+ col3,
173
])
174
.where(col1 < '2017-01-01 00:00:00')
175
.group_by(col1)
0 commit comments