You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: index_advise.go
    path of file: ./repos/tidb/pkg/executor
    
    the code of the file until where you have to start completion: // Copyright 2019 PingCAP, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may 
    
func (e *IndexAdviseInfo) prepareInfo(data []byte) error {
	if e.MaxMinutes == 0 {
		return errors.New("Index Advise: the maximum execution time limit should be greater than 0")
	}
	if e.MaxIndexNum != nil {
		if e.MaxIndexNum.PerTable == 0 || e.MaxIndexNum.PerDB == 0 {
			return errors.New("Index Advise: the maximum number of indexes should be greater than 0")
		}
	}
	return e.getStmtNodes(data)
}