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

please help me,about Code implementation problem #8

Open
hopeyl opened this issue May 30, 2024 · 0 comments
Open

please help me,about Code implementation problem #8

hopeyl opened this issue May 30, 2024 · 0 comments

Comments

@hopeyl
Copy link

hopeyl commented May 30, 2024

static joinAlg algs[] { {"HJC", hashJoinClusteredProbe}			//定义了一些参数和连接探测函数
//		{"HJ", hashIndexJoin}
};

		case 'a': {										
			int i = 0;
			while (algs[i].joinAlg) {
				printf("\noptarg = %s,algs[i].name=%s\n",optarg,algs[i].name);
				if (strcmp(optarg, algs[i].name) == 0){
					printf("\noptarg = %s,algs[i].name=%s\n",optarg,algs[i].name);
					fflush(stdout);
					strcpy(input->alg.name, algs[i].name);
					input->alg.joinAlg = algs[i].joinAlg;
					break;
				}
				i++;
			}
			printf("joinAlg = %s\t", input->alg.name);
		}
			break;

Here's why “HJ” and “HJC” were able to match.

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

No branches or pull requests

1 participant