Skip to content

Conversation

@karthikeyann
Copy link
Collaborator

The debug prints during execution of cudf driver adapter is improved in this PR

  • Reduce verbosity of some unnecessary logging like function call, constructor calls. (we still need them if segfault occurs, so they are available at higher level of verbosity)
  • add extra information to prints like aggregation Kind
  • Add extra debug information about fallback nodes
  • Add AST and TableView printer for debugging ast errors

@karthikeyann karthikeyann self-assigned this Dec 19, 2025
@karthikeyann karthikeyann added enhancement New feature or request cudf cudf related - GPU acceleration labels Dec 19, 2025
@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Dec 19, 2025
@netlify
Copy link

netlify bot commented Dec 19, 2025

Deploy Preview for meta-velox canceled.

Name Link
🔨 Latest commit 247df02
🔍 Latest deploy log https://app.netlify.com/projects/meta-velox/deploys/6945e16ad3d85c00082e8232

const std::shared_ptr<velox::exec::Expr>& expr,
int indent = 0) {
std::cout << std::string(indent, ' ') << expr->name() << std::endl;
std::cout << std::string(indent, ' ') << expr->name() << "("
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not use this with default argument recursive = true

  /// @param recursive If true, the output includes input expressions and all
  /// their inputs recursively.
  virtual std::string toString(bool recursive = true) const;

<< oper->toString().c_str()
<< ", keepOperator = " << keepOperator
<< ", replaceOp.size() = " << replaceOp.size() << "\n";
<< ", replaceOp.size() = " << replaceOp.size() << ", ";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why the line ends with , ?

} else if (!condition) {
LOG(WARNING)
<< "Replacement with cuDF operator failed. Falling back to CPU execution";
LOG(WARNING) << "Replacement Failed Operator: " << oper->toString()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to add << std::endl in the end, LOG(WARNING) logs a line

}
} else {
if (CudfConfig::getInstance().debugEnabled) {
LOG(INFO) << cudf::ast::expression_to_string(cudfTree_.back())
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove some duplicated license declaration

@@ -0,0 +1,475 @@
/*
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have the specification for the file name? I notice some is .hpp while Velox is always .h, and some is .cu

/**
* @brief Get the string representation of a cudf::type_id
*/
inline std::string type_id_to_string(cudf::type_id id) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does the file copy from somewhere? If yes, please add the link and describe why you need to copy it instead linking it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. cudf cudf related - GPU acceleration enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants