Skip to content

Conversation

@Nitish1814
Copy link
Contributor

No description provided.

Copy link
Member

@sonalgoyal sonalgoyal left a comment

Choose a reason for hiding this comment

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

listeners are missing? thats the main thing we want to refactor. please also check other comments.

this.factoryClass = factoryClass;
}

@SuppressWarnings("unchecked")
Copy link
Member

Choose a reason for hiding this comment

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

factory and izingg should not be part of the same class

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Segregated factory and Zingg

return new ArgumentsAssembler();
}
protected ZinggFactoryProvider<S, D, R, C> getZinggFactoryProvider() {
return new ZinggFactoryProvider<>("zingg.spark.core.executor.SparkZFactory");
Copy link
Member

Choose a reason for hiding this comment

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

this si spark related, should not be here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed. made as abstract method

.master("local[*]")
.config("spark.sql.shuffle.partitions", "8")
.getOrCreate();

Copy link
Member

Choose a reason for hiding this comment

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

missing all the checkpoint relaed work we did

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated here. all the changes are pulled

SparkSession spark = SparkSession.builder()
.appName("Zingg")
.master("local[*]")
.config("spark.sql.shuffle.partitions", "8")
Copy link
Member

Choose a reason for hiding this comment

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

this was never hardcoded, where is this comign from?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed hardcoding

@Nitish1814
Copy link
Contributor Author

listeners are missing? thats the main thing we want to refactor. please also check other comments.

listeners are integrated

}
}

public static String getProductName(){ return "Zingg AI"; }
Copy link
Member

Choose a reason for hiding this comment

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

can these be static, as we will override in enterprise?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated

public final Log LOG = LogFactory.getLog(ArgumentsAssembler.class);

public IZArgs assemble(IZArgs args, ClientOptions options) {
int jobId = (int) (System.currentTimeMillis());
Copy link
Member

Choose a reason for hiding this comment

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

this is a long. thats why original code did int jobId = new Long(System.currentTimeMillis()).intValue();

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated it

Nitish1814 and others added 7 commits September 4, 2025 16:59
* reformatted PipeUtil

* break reader and  writer as two separate components

* changes

* changed variable scope

* added Helper class for initializing reader

* updated WriterStrategyFactory

* updated PipeUtilBase

* renamed interfaces names and added Helper to for initializing writer

* removed loader with string

* added default reader and writer strategy

* removed inMemory read strategy

* changed location to path property

* removed in-memory pipes

* made variable protected

* updated strategy reader

* added back compatibility for location

* removed helper from reader and writer

* added pipe to writer strategy

* updated snowflake format

* reverted back snowflake format

* added constant location and path

---------

Co-authored-by: Nitish <[email protected]>
@sonalgoyal sonalgoyal closed this Oct 13, 2025
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.

3 participants