Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-29194 JDK11 QA
  3. SPARK-31416

Check more strictly that a field name can be used as a valid Java identifier for codegen

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0
    • 3.0.0
    • SQL
    • None

    Description

      ScalaReflection checks that a field name can be used as a valid Java identifier by checking whether the field name is not a reserved keyword.

      But, in the current implementation, enum is missed.
      Further, some characters including numeric literals are not used as valid identifiers but not checked.

      Attachments

        Issue Links

          Activity

            People

              sarutak Kousuke Saruta
              sarutak Kousuke Saruta
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: