Uploaded image for project: 'Hue (READ ONLY)'
  1. Hue (READ ONLY)
  2. HUE-704

Importing very large 'query' rows into beeswax_queryhistory on MySQL breaks if the length exceeds varchar(1024)

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 1.2.0
    • Fix Version/s: 2.1.0
    • Component/s: con.hive
    • Labels:
      None
    • Target Version:
    • Easy:
      Easy

      Description

      While importing a Hue db from derby into MySQL I ran into this issue:

      DatabaseError: (1406, "Data too long for column 'query' at row 1")
      

      Currently beeswax_queryhistory uses a varchar(1024) column for 'query' in the MySQL schema and trying to import those rows into MySQL is a problem.

      Promoting 'query' to use another data type like 'text' or maybe 'longtext' instead of varchar(1024) can avoid this type of issues in the future.

        Attachments

          Activity

            People

            • Assignee:
              abe Abraham Elmahrek
              Reporter:
              esteban Esteban Gutierrez
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: