Is it possible to configure Apache Calcite identifiers to be case insensitive?table not found with apache calciteorg.apache.calcite.sql.validate.SqlValidatorExceptionapache calcite, querying without using the jdbc apiApache Calcite - ReflectiveSchema StackoverflowErrorApache Calcite to Find Selected Columns in an SQL StringWould calcite work on Scala case classesRelbuider on Calcite TablesApache Calcite - How to Integrate CSV and MySQLApache Calcite - Can't seem to parse DDL statementsApache Calcite query json nested data

Which old Technic set included large yellow motor?

Set orthographic view using python?

Is it legal for source code containing undefined behavior to crash the compiler?

Gambler coin problem: fair coin and two-headed coin

Half filled water bottle

What does it take for witness testimony to be believed?

Location of label edges in Tikz Graph

What happened to the HDEV ISS Experiment? Is it over?

Why is a statement like 1 + n *= 3 allowed in Ruby?

about to retire but not retired yet, employed but not working any more

How do I feed my black hole?

Hangman game in Python - need feedback on the quality of code

Why is adding AC power easier than adding DC power?

Breaker Mapping Questions

Why error propagation in CBC mode encryption affect two blocks?

Can you board the plane when your passport is valid less than 3 months?

How do I remap "å" to type "å"?

Did Dr. Hannibal Lecter like Clarice or was he attracted to her?

How do you capitalize agile costs with less mature teams?

How to say "I only speak one which is English." in French?

What are the occurences of total war in the Native Americans?

How many birds in the bush?

Why did my folder names end up like this, and how can I fix this using a script?

How does the OS tell whether an "Address is already in use"?



Is it possible to configure Apache Calcite identifiers to be case insensitive?


table not found with apache calciteorg.apache.calcite.sql.validate.SqlValidatorExceptionapache calcite, querying without using the jdbc apiApache Calcite - ReflectiveSchema StackoverflowErrorApache Calcite to Find Selected Columns in an SQL StringWould calcite work on Scala case classesRelbuider on Calcite TablesApache Calcite - How to Integrate CSV and MySQLApache Calcite - Can't seem to parse DDL statementsApache Calcite query json nested data






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1















The Calcite SQL language reference (https://calcite.apache.org/docs/reference.html) says the following:




In Calcite, matching identifiers to the name of the referenced object is case-sensitive. But remember that unquoted identifiers are implicitly converted to upper case before matching, and if the object it refers to was created using an unquoted identifier for its name, then its name will have been converted to upper case also.




Is there some configuration to make both object creation and the query case insensitive? For example, if I have a table named countries is it possible to configure the query validator to accept identifiers either COUNTRIES or countries in the SQL query?



I tried to configure the SqlParser to case sensitive false in the following:



Frameworks.newConfigBuilder().parserConfig(SqlParser.configBuilder().setCaseSensitive(false).build()).build()


and then passed this framework config to the PlannerImpl used in SqlToRelConverter, but the SQL validator still fails when I do not enclose the identifier in quotes to enforce case.










share|improve this question






























    1















    The Calcite SQL language reference (https://calcite.apache.org/docs/reference.html) says the following:




    In Calcite, matching identifiers to the name of the referenced object is case-sensitive. But remember that unquoted identifiers are implicitly converted to upper case before matching, and if the object it refers to was created using an unquoted identifier for its name, then its name will have been converted to upper case also.




    Is there some configuration to make both object creation and the query case insensitive? For example, if I have a table named countries is it possible to configure the query validator to accept identifiers either COUNTRIES or countries in the SQL query?



    I tried to configure the SqlParser to case sensitive false in the following:



    Frameworks.newConfigBuilder().parserConfig(SqlParser.configBuilder().setCaseSensitive(false).build()).build()


    and then passed this framework config to the PlannerImpl used in SqlToRelConverter, but the SQL validator still fails when I do not enclose the identifier in quotes to enforce case.










    share|improve this question


























      1












      1








      1








      The Calcite SQL language reference (https://calcite.apache.org/docs/reference.html) says the following:




      In Calcite, matching identifiers to the name of the referenced object is case-sensitive. But remember that unquoted identifiers are implicitly converted to upper case before matching, and if the object it refers to was created using an unquoted identifier for its name, then its name will have been converted to upper case also.




      Is there some configuration to make both object creation and the query case insensitive? For example, if I have a table named countries is it possible to configure the query validator to accept identifiers either COUNTRIES or countries in the SQL query?



      I tried to configure the SqlParser to case sensitive false in the following:



      Frameworks.newConfigBuilder().parserConfig(SqlParser.configBuilder().setCaseSensitive(false).build()).build()


      and then passed this framework config to the PlannerImpl used in SqlToRelConverter, but the SQL validator still fails when I do not enclose the identifier in quotes to enforce case.










      share|improve this question














      The Calcite SQL language reference (https://calcite.apache.org/docs/reference.html) says the following:




      In Calcite, matching identifiers to the name of the referenced object is case-sensitive. But remember that unquoted identifiers are implicitly converted to upper case before matching, and if the object it refers to was created using an unquoted identifier for its name, then its name will have been converted to upper case also.




      Is there some configuration to make both object creation and the query case insensitive? For example, if I have a table named countries is it possible to configure the query validator to accept identifiers either COUNTRIES or countries in the SQL query?



      I tried to configure the SqlParser to case sensitive false in the following:



      Frameworks.newConfigBuilder().parserConfig(SqlParser.configBuilder().setCaseSensitive(false).build()).build()


      and then passed this framework config to the PlannerImpl used in SqlToRelConverter, but the SQL validator still fails when I do not enclose the identifier in quotes to enforce case.







      apache-calcite sql-parser






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 27 at 19:58









      tuzhuchengtuzhucheng

      532 silver badges7 bronze badges




      532 silver badges7 bronze badges

























          1 Answer
          1






          active

          oldest

          votes


















          0















          I believe the case sensitivity on the parser is irrelevant here. You'll want to set the case sensitivity on the catalog reader that you're using. For example, if you're using CalciteCatalogReader, you'll want to set CalciteConnectionProperty.CASE_SENSITIVE to true on the CalciteConnectionConfig object you're passing in during configuration.






          share|improve this answer
























            Your Answer






            StackExchange.ifUsing("editor", function ()
            StackExchange.using("externalEditor", function ()
            StackExchange.using("snippets", function ()
            StackExchange.snippets.init();
            );
            );
            , "code-snippets");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "1"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55385516%2fis-it-possible-to-configure-apache-calcite-identifiers-to-be-case-insensitive%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0















            I believe the case sensitivity on the parser is irrelevant here. You'll want to set the case sensitivity on the catalog reader that you're using. For example, if you're using CalciteCatalogReader, you'll want to set CalciteConnectionProperty.CASE_SENSITIVE to true on the CalciteConnectionConfig object you're passing in during configuration.






            share|improve this answer





























              0















              I believe the case sensitivity on the parser is irrelevant here. You'll want to set the case sensitivity on the catalog reader that you're using. For example, if you're using CalciteCatalogReader, you'll want to set CalciteConnectionProperty.CASE_SENSITIVE to true on the CalciteConnectionConfig object you're passing in during configuration.






              share|improve this answer



























                0














                0










                0









                I believe the case sensitivity on the parser is irrelevant here. You'll want to set the case sensitivity on the catalog reader that you're using. For example, if you're using CalciteCatalogReader, you'll want to set CalciteConnectionProperty.CASE_SENSITIVE to true on the CalciteConnectionConfig object you're passing in during configuration.






                share|improve this answer













                I believe the case sensitivity on the parser is irrelevant here. You'll want to set the case sensitivity on the catalog reader that you're using. For example, if you're using CalciteCatalogReader, you'll want to set CalciteConnectionProperty.CASE_SENSITIVE to true on the CalciteConnectionConfig object you're passing in during configuration.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Mar 28 at 14:45









                Michael MiorMichael Mior

                22.2k7 gold badges65 silver badges99 bronze badges




                22.2k7 gold badges65 silver badges99 bronze badges





















                    Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.







                    Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.



















                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55385516%2fis-it-possible-to-configure-apache-calcite-identifiers-to-be-case-insensitive%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

                    Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

                    Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript