Uploaded image for project: 'Apache Trafodion (Retired)'
  1. Apache Trafodion (Retired)
  2. TRAFODION-3279

get lob stats fail when mixing lob and normal columns

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • any
    • 2.4
    • sql-exe
    • None

    Description

      When mixing lob and normal columns like this:

      >> cqd traf_blob_as_varchar 'off';
      >> create table t1 (a int, b blob);
      >> create table t2 (a blob, b int, c blob);
      

      try get lob stats will fail with this error:

      >> get lob stats for table t1
      
      *** ERROR[4082] Object TRAFODION.SCH."LOBDescChunks__02697841542402152109_0001" does not exist or is inaccessible.
      
      *** ERROR[8822] The statement was not prepared.
      
      --- SQL operation failed with errors.
      >>  get lob stats for table t2
      
      *** ERROR[4082] Object TRAFODION.SCH."LOBDescChunks__02697841542402158348_0002" does not exist or is inaccessible.
      
      *** ERROR[8822] The statement was not prepared.
      
      --- SQL operation failed with errors.
      

      It seems it will wrongly used the lob number as the lob column number.

      Please note that showddl <table>, lob detail command is not affected, but select * from table(lob stats(<table>)) suffer the same problem.

      Attachments

        Activity

          People

            Unassigned Unassigned
            hezhenxing He Zhenxing
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: