I am trying to do a simple select * operation on column store tables in HANA Database. I observed that doing a select * on some of the tables in Database was resulting in the following error :
column store error: search table error: [6923] Attribute load failed.SAP DBTech JDBC: [2048]:
Some Column store tables are not getting loaded due to this error.
I restarted the database instance for cal.sap.com account allotted to me, but it did not solve the issue. I then suspended the instance and re-activated it, However it resulted in same issue with other tables in database which were getting selected properly before, i.e. I was able to read their data.
I noticed that it occurs when table has one or more columns of type ‘TIME’ /’TIMESTAMP’
in HANA
, which typically store timestamp values in hours:minutes:seconds:millisecond format.
This is inconsistent behaviour as I am able to do select *
operation on these tables all the time, except for few instances where select *
fails and this issue crops up. I delete the table contents and then load them again with same data and then table load (selecting values from the table) works fine. I tried unloading table from memory and loading it again, but it does not help solving the issue.
UPDATE : Trace File Contents after this error occurs :
ste::Exception type AttributeStoreFile error '1090922094766': attribute value is not a date or wrong syntax message additionalInfo $ADDINFO$ exception throw location:
CS/OptimizeCompression/Helper.cpp:431
Attribute load failed; $message$=Attribute load failed;index=HAULMAX_UAT_SHIPMENT:Shipmenten,attribute='PickupTime' (228)
exception 6923:
CS/OptimizeCompression/Helper.cpp:431
Attribute load failed; $message$=Attribute load failed;index=HAULMAX_UAT_SHIPMENT:Shipmenten,attribute='ActualDelTime' (212)
(6923)' (table=HAULMAX_UAT_SHIPMENT:Shipment (t 1337), passport=)
[4810]{-1}[202/-1] 2017-06-27 10:48:52.458400 e optimize_compres OptimizeCompressionData.cpp(00857) : return value: false, error: exception 6923:
CS/OptimizeCompression/Helper.cpp:431
Attribute load failed; $message$=Attribute load failed;index=HAULMAX_UAT_SHIPMENT:Shipmenten,attribute='PickupTime' (228)
exception 6923:
CS/OptimizeCompression/Helper.cpp:431
Attribute load failed; $message$=Attribute load failed;index=HAULMAX_UAT_SHIPMENT:Shipmenten,attribute='ActualDelTime' (212)
(6923) (table=HAULMAX_UAT_SHIPMENT:Shipment (t 1337), passport=)
[4810]{-1}[200/16652466] 2017-06-27 10:48:52.459866 e Mergedog Mergedog.cpp(01338) : Optimize compression failed: {IndexName: HAULMAX_UAT_SHIPMENT:Shipment, Trigger: 7, ReclaimDelta: false, DeltaMerge: false, OptimizeCompression: true, MainSize: 1119210}, error: exception 6923:
CS/OptimizeCompression/Helper.cpp:431
Attribute load failed; $message$=Attribute load failed;index=HAULMAX_UAT_SHIPMENT:Shipmenten,attribute='PickupTime' (228)
exception 6923:
CS/OptimizeCompression/Helper.cpp:431
Attribute load failed; $message$=Attribute load failed;index=HAULMAX_UAT_SHIPMENT:Shipmenten,attribute='ActualDelTime' (212)
(6923)