Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support resultSet direct push for SparkSqlExecutor #5170

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

ycycse
Copy link
Member

@ycycse ycycse commented Sep 13, 2024

Using direct push of result sets, data does not need to be cached on disk and can be calculated in real-time and returned directly from memory. This PR supports direct pushing of resultSets under SparkSqlExecutor.

val vector = new VarCharVector(field.name, allocator)
vector.allocateNew(df.count().toInt)
vector
case _ => throw new IllegalArgumentException(s"Unsupported data type: ${field.dataType}")
Copy link
Contributor

Choose a reason for hiding this comment

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

Are other types not supported? Can we convert to String by default if the type is not supported ?

Copy link
Member Author

Choose a reason for hiding this comment

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

You're right, I will improve this part.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants