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 161b2c7 commit aae2bd2Copy full SHA for aae2bd2
soql/parser/postprocess/normalize.go
@@ -252,10 +252,17 @@ func (ctx *normalizeQueryContext) normalizeQuery(
252
q.From[i].ViewId = viewId
253
}
254
255
- objDepth := len(q.From[i].Name) + ctx.headObjDepthOffset
+ nameLen := len(q.From[i].Name)
256
+ objDepth := nameLen + ctx.headObjDepthOffset
257
if ctx.maxDepth < objDepth {
258
ctx.maxDepth = objDepth
259
260
+ if nameLen > 1 {
261
+ parentKey := nameutil.MakeDottedKeyIgnoreCase(q.From[i].Name, nameLen-1)
262
+ if parentViewId, ok := ctx.viewIdMap[parentKey]; ok {
263
+ q.From[i].ParentViewId = parentViewId
264
+ }
265
266
267
268
// TODO: * check object graph when aggregation(group by)
0 commit comments