beyond1920 commented on a change in pull request #2524:
URL: https://github.com/apache/calcite/pull/2524#discussion_r716130321



##########
File path: core/src/main/codegen/templates/Parser.jj
##########
@@ -2351,7 +2399,16 @@ SqlNode TableFunctionCall(SqlParserPos pos) :
             funcType = 
SqlFunctionCategory.USER_DEFINED_TABLE_SPECIFIC_FUNCTION;
         }
     ]
-    call = NamedRoutineCall(funcType, ExprContext.ACCEPT_CURSOR)
+    (
+        {
+            s = span();
+        }
+        // Currenly, only session window table function requires input to be 
set semantics
+        <SESSION>
+        call = SetSemanticsWindowTVF(new 
SqlIdentifier(Collections.singletonList("SESSION"), s.pos()), funcType)
+    |

Review comment:
       Hi @julianhyde I have same concern with @danny0405 , should we have 
separate branch for set semantic window(Currently, only session windowing has 
set semantics)? 
   Because based on SQL standard, only input tables with set semantics may be 
partitioned or ordered while input table with row semantics may not be 
partitioned or ordered.
   
![image](https://user-images.githubusercontent.com/1525333/134791877-7b7f3395-e664-49d4-98fc-3c7f93a9ba52.png)




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to