[ 
https://issues.apache.org/jira/browse/BEAM-8334?focusedWorklogId=322111&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-322111
 ]

ASF GitHub Bot logged work on BEAM-8334:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 02/Oct/19 18:17
            Start Date: 02/Oct/19 18:17
    Worklog Time Spent: 10m 
      Work Description: amaliujia commented on pull request #9704: [BEAM-8334] 
Expose Language Options for testing
URL: https://github.com/apache/beam/pull/9704#discussion_r330698802
 
 

 ##########
 File path: 
sdks/java/extensions/sql/src/main/java/org/apache/beam/sdk/extensions/sql/zetasql/SqlAnalyzer.java
 ##########
 @@ -84,15 +84,19 @@ static Builder withQueryParams(Map<String, Value> params) {
    * resolution strategy set in the context.
    */
   ResolvedStatement analyze(String sql) {
-    AnalyzerOptions options = initAnalyzerOptions(builder.queryParams);
+    AnalyzerOptions options = initAnalyzerOptions();
+    for (Map.Entry<String, Value> entry : builder.queryParams.entrySet()) {
 
 Review comment:
   I am slightly against this move because the original intention is to 
initialize `AnalyzerOptions` in the same place to avoid many pieces of 
initializations (which will be hard to maintain). I meant "slightly" because I 
can see why you are moving it: it will require static parameters as input.
   
   
   What do you think about the idea of having a AnalyzerOptions builder with 
default settings on fields? 
 
----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 322111)
    Time Spent: 0.5h  (was: 20m)

> Expose Language Options for testing
> -----------------------------------
>
>                 Key: BEAM-8334
>                 URL: https://issues.apache.org/jira/browse/BEAM-8334
>             Project: Beam
>          Issue Type: New Feature
>          Components: dsl-sql-zetasql
>            Reporter: Andrew Pilloud
>            Assignee: Andrew Pilloud
>            Priority: Trivial
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> Google has a set of compliance tests for ZetaSQL. The test framework needs 
> access to LanguageOptions to determine what tests are supported.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to