You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
soql: `SELECT WEEK_IN_YEAR(CloseDate), SUM(amount) FROM Opportunity GROUP BY WEEK_IN_YEAR(CloseDate) ORDER BY WEEK_IN_YEAR(CloseDate)`,
2018
+
output: {
2019
+
fields: [
2020
+
{
2021
+
type: 'FieldFunctionExpression',
2022
+
functionName: 'WEEK_IN_YEAR',
2023
+
parameters: ['CloseDate'],
2024
+
rawValue: 'WEEK_IN_YEAR(CloseDate)',
2025
+
},
2026
+
{
2027
+
type: 'FieldFunctionExpression',
2028
+
functionName: 'SUM',
2029
+
parameters: ['amount'],
2030
+
isAggregateFn: true,
2031
+
rawValue: 'SUM(amount)',
2032
+
},
2033
+
],
2034
+
sObject: 'Opportunity',
2035
+
groupBy: {
2036
+
fn: {
2037
+
functionName: 'WEEK_IN_YEAR',
2038
+
parameters: ['CloseDate'],
2039
+
rawValue: 'WEEK_IN_YEAR(CloseDate)',
2040
+
},
2041
+
},
2042
+
orderBy: {
2043
+
fn: {
2044
+
functionName: 'WEEK_IN_YEAR',
2045
+
parameters: ['CloseDate'],
2046
+
rawValue: 'WEEK_IN_YEAR(CloseDate)',
2047
+
},
2048
+
},
2049
+
},
2050
+
},
2051
+
{
2052
+
testCase: 107,
2053
+
soql: `SELECT WEEK_IN_YEAR(CloseDate), SUM(amount) FROM Opportunity GROUP BY WEEK_IN_YEAR(CloseDate) ORDER BY WEEK_IN_YEAR(CloseDate) DESC NULLS FIRST`,
2054
+
output: {
2055
+
fields: [
2056
+
{
2057
+
type: 'FieldFunctionExpression',
2058
+
functionName: 'WEEK_IN_YEAR',
2059
+
parameters: ['CloseDate'],
2060
+
rawValue: 'WEEK_IN_YEAR(CloseDate)',
2061
+
},
2062
+
{
2063
+
type: 'FieldFunctionExpression',
2064
+
functionName: 'SUM',
2065
+
parameters: ['amount'],
2066
+
isAggregateFn: true,
2067
+
rawValue: 'SUM(amount)',
2068
+
},
2069
+
],
2070
+
sObject: 'Opportunity',
2071
+
groupBy: {
2072
+
fn: {
2073
+
functionName: 'WEEK_IN_YEAR',
2074
+
parameters: ['CloseDate'],
2075
+
rawValue: 'WEEK_IN_YEAR(CloseDate)',
2076
+
},
2077
+
},
2078
+
orderBy: {
2079
+
fn: {
2080
+
functionName: 'WEEK_IN_YEAR',
2081
+
parameters: ['CloseDate'],
2082
+
rawValue: 'WEEK_IN_YEAR(CloseDate)',
2083
+
},
2084
+
order: 'DESC',
2085
+
nulls: 'FIRST',
2086
+
},
2087
+
},
2088
+
},
2089
+
{
2090
+
testCase: 108,
2091
+
soql: `SELECT WEEK_IN_YEAR(CloseDate), SUM(amount) FROM Opportunity GROUP BY WEEK_IN_YEAR(CloseDate) ORDER BY WEEK_IN_YEAR(CloseDate) DESC NULLS LAST, SUM(amount) ASC NULLS LAST`,
0 commit comments