Skip to content

Issue with virtual table statistics creation #45

Description

@svkarthikeyantce

When I tried to run the below command to virtual table statistics creation, received the mentioned error.

python hanacleaner.py -k HANACLEANERKEY -vs true -vt HISTOGRAM -vn 40 -vtt RECORD_COUNT -vto SIMPLE -os true

Error message:
Traceback (most recent call last):
File "hanacleaner.py", line 2494, in
main()
File "hanacleaner.py", line 2434, in main
[nVTs, nVTsOptimized] = create_vt_statistics(vtSchemas, maxColumnsOfVT, defaultVTStatType, maxRowsForDefaultVT, largeVTStatType, otherDBVTStatType, ignore2ndMon, sqlman, logman)
File "hanacleaner.py", line 1307, in create_vt_statistics
statType = defaultVTStatType if getNbrRows(vt[0], vt[1], sqlman) <= maxRowsForDefaultVT else largeVTStatType
File "hanacleaner.py", line 1015, in getNbrRows
return int(run_command(sqlman.hdbsql_jAQaxU + " "SELECT COUNT(*) FROM "+schema+"."+table+" "").strip(' '))
ValueError: invalid literal for int() with base 10: ''

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions